/*
 * home-yahoo.css - Yahoo Japan 2000s-inspired homepage layout
 * the DENSE one. three-column grid, colored category tabs,
 * flat colored header bars, blue underlined links, tiny text,
 * 1px borders everywhere. that unmistakable "everything on one page
 * and somehow it all makes sense" energy.
 *
 * scoped entirely to body.page-home-yahoo. does not leak into other pages.
 * loaded alongside home.css but only one is ever enabled at a time.
 *
 * design reference: yahoo.co.jp circa 2002-2006, with iNKOBAN personality.
 * multi-colored category tabs. flat colored section headers.
 * sans-serif throughout. no gradients on content. no rounded corners.
 * no transitions. instant state changes. period-accurate.
 */


/* ========================================================================== */
/*  CUSTOM PROPERTIES                                                         */
/* ========================================================================== */

.page-home-yahoo {
  /* --- palette --- */
  --yj-bg:            #ffffff;
  --yj-bg-alt:        #f4f3ef;
  --yj-header-bg:     #1e1e3a;
  --yj-header-accent: #3a3a6a;
  --yj-text:          #333333;
  --yj-text-muted:    #666666;
  --yj-text-light:    #999999;
  --yj-link:          #0033cc;
  --yj-link-hover:    #cc3300;
  --yj-link-visited:  #551a8b;
  --yj-border:        #cccccc;
  --yj-border-light:  #e0e0e0;
  --yj-border-dark:   #999999;

  /* --- tab colors (the Yahoo JP signature) --- */
  --yj-tab-home:      #8b2252;
  --yj-tab-about:     #2a5599;
  --yj-tab-skills:    #3a7a3a;
  --yj-tab-projects:  #8a6914;
  --yj-tab-blog:      #5a3a8a;
  --yj-tab-links:     #1a6a5a;
  --yj-tab-other:     #5a5a7a;

  /* --- fonts (sans-serif throughout - period-accurate) --- */
  --yj-font:          'MS PGothic', Arial, Helvetica, sans-serif;
  --yj-font-heading:  Tahoma, Arial, Helvetica, sans-serif;
}


/* ========================================================================== */
/*  GLOBAL OVERRIDES                                                          */
/* ========================================================================== */

.page-home-yahoo {
  margin: 0;
  padding: 0;
  background: var(--yj-bg);
  font-family: var(--yj-font);
  font-size: 12px;
  line-height: 1.5;
  color: var(--yj-text);
}

html:has(.page-home-yahoo) {
  box-shadow: none;
  background: var(--yj-bg);
}

/* hide the Win98 navbar and portal site-header */
.page-home-yahoo .navbar {
  display: none !important;
}

.page-home-yahoo .site-header {
  display: none !important;
}

/* link styling - classic web */
.page-home-yahoo a {
  color: var(--yj-link);
  text-decoration: underline;
}

.page-home-yahoo a:visited {
  color: var(--yj-link-visited);
}

.page-home-yahoo a:hover {
  color: var(--yj-link-hover);
}

.page-home-yahoo ::selection {
  background: var(--yj-tab-home);
  color: #ffffff;
}

/* headings reset */
.page-home-yahoo h1,
.page-home-yahoo h2,
.page-home-yahoo h3,
.page-home-yahoo h4,
.page-home-yahoo h5 {
  font-family: var(--yj-font-heading);
  margin: 0;
}

.page-home-yahoo p {
  font-family: var(--yj-font);
}

.page-home-yahoo hr {
  border: none;
  border-top: 1px solid var(--yj-border);
  background: transparent;
  box-shadow: none;
  height: 0;
  margin: 6px 0;
}

.page-home-yahoo img {
  border: 0;
}


/* ========================================================================== */
/*  HEADER                                                                    */
/* ========================================================================== */
/* deep indigo bar with logo, search, and utility links.
   compact - Yahoo JP's header was narrow and utilitarian               ===  */

.yj-header {
  background: var(--yj-header-bg);
  border-bottom: 2px solid var(--yj-tab-home);
  padding: 0;
}

.yj-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 12px;
}

.yj-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* logo */
.yj-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--yj-font-heading);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.yj-logo:hover {
  color: #ddddff;
}

.page-home-yahoo .yj-logo:visited {
  color: #ffffff;
}

.yj-logo img {
  display: block;
}

/* search bar */
.yj-search {
  display: flex;
  flex: 1;
  max-width: 360px;
}

.yj-search-input {
  flex: 1;
  padding: 3px 6px;
  border: 1px solid var(--yj-border-dark);
  font-family: var(--yj-font);
  font-size: 12px;
  background: #ffffff;
  outline: none;
}

.yj-search-input:focus {
  border-color: var(--yj-tab-about);
}

.yj-search-btn {
  padding: 3px 12px;
  background: #e8e8e8;
  border: 1px solid var(--yj-border-dark);
  border-left: none;
  font-family: var(--yj-font);
  font-size: 11px;
  font-weight: bold;
  color: var(--yj-text);
  cursor: pointer;
}

.yj-search-btn:hover {
  background: #d0d0d0;
}

.yj-search-btn:active {
  background: #c0c0c0;
}

/* utility links (top right) */
.yj-header-util {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  white-space: nowrap;
  font-size: 11px;
}

.yj-header-util a {
  color: #b0b0d0;
  text-decoration: none;
}

.page-home-yahoo .yj-header-util a:visited {
  color: #b0b0d0;
}

.yj-header-util a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.yj-sep {
  color: var(--yj-text-light);
  margin: 0 2px;
}


/* ========================================================================== */
/*  TAB NAVIGATION                                                            */
/* ========================================================================== */
/* Yahoo JP's colored category tabs. each tab has a distinct color.
   this is THE design element that says "Yahoo JP."
   flat colored backgrounds, white bold text, no gradients               ===  */

.yj-tabs {
  background: var(--yj-bg-alt);
  border-bottom: 3px solid var(--yj-tab-home);
  padding: 0;
}

.yj-tabs-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  padding: 0 12px;
  gap: 2px;
  align-items: flex-end;
}

.yj-tab {
  display: inline-block;
  padding: 5px 14px 4px 14px;
  font-family: var(--yj-font-heading);
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  top: 3px;
}

.page-home-yahoo .yj-tab,
.page-home-yahoo .yj-tab:visited,
.page-home-yahoo .yj-tab:hover {
  color: #ffffff;
}

.yj-tab:hover {
  opacity: 0.85;
}

/* individual tab colors */
.yj-tab-home    { background: var(--yj-tab-home); }
.yj-tab-about   { background: var(--yj-tab-about); }
.yj-tab-skills  { background: var(--yj-tab-skills); }
.yj-tab-projects { background: var(--yj-tab-projects); }
.yj-tab-blog    { background: var(--yj-tab-blog); }
.yj-tab-links   { background: var(--yj-tab-links); }
.yj-tab-other   { background: var(--yj-tab-other); }


/* ========================================================================== */
/*  TOPICS BAR                                                                */
/* ========================================================================== */
/* trending/featured keyword links. Yahoo JP always had these
   just below the tabs. dense, compact, separated by interpuncts       ===  */

.yj-topics {
  background: #f0efe8;
  border-bottom: 1px solid var(--yj-border);
  padding: 0;
}

.yj-topics-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 4px 12px;
  font-size: 11px;
}

.yj-topics-label {
  font-weight: bold;
  color: var(--yj-text-muted);
  margin-right: 6px;
}

.yj-topics a {
  margin: 0 3px;
  white-space: nowrap;
}

.yj-topics a + a::before {
  content: '\00b7';
  color: var(--yj-border-dark);
  margin-right: 6px;
  text-decoration: none;
  display: inline-block;
}


/* ========================================================================== */
/*  THREE-COLUMN LAYOUT                                                       */
/* ========================================================================== */
/* the classic Yahoo JP formula: directory | content | utilities.
   960px max-width (THE 2000s resolution). thin gaps between columns.
   left column: 175px. right column: 190px. center: the rest.         ===  */

.yj-layout {
  max-width: 960px;
  margin: 8px auto 0 auto;
  display: flex;
  gap: 8px;
  padding: 0 10px;
  align-items: flex-start;
}

.yj-col {
  min-width: 0;
}

.yj-col-left {
  width: 175px;
  flex-shrink: 0;
}

.yj-col-center {
  flex: 1;
  min-width: 0;
}

.yj-col-right {
  width: 190px;
  flex-shrink: 0;
}


/* ========================================================================== */
/*  BOX COMPONENT                                                             */
/* ========================================================================== */
/* the fundamental building block. every content section is a "box"
   with a flat colored header bar and a bordered body.
   Yahoo JP used these everywhere - stacked vertically in columns.
   header colors vary by category. no gradients. no shadows.           ===  */

.yj-box {
  border: 1px solid var(--yj-border);
  margin-bottom: 8px;
  background: var(--yj-bg);
}

.yj-box-hd {
  padding: 4px 8px;
  font-family: var(--yj-font-heading);
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* "more >>" link inside headers */
.yj-hd-more {
  font-size: 10px;
  font-weight: normal;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.8;
}

.yj-hd-more:hover {
  opacity: 1;
  color: #ffffff;
  text-decoration: underline;
}

.page-home-yahoo .yj-hd-more:visited {
  color: #ffffff;
}

.yj-box-bd {
  padding: 8px;
  font-size: 12px;
  line-height: 1.55;
}

/* per-section header colors */
.yj-hd-nav      { background: var(--yj-header-bg); }
.yj-hd-ext      { background: var(--yj-tab-links); }
.yj-hd-news     { background: var(--yj-tab-home); }
.yj-hd-about    { background: var(--yj-tab-about); }
.yj-hd-skills   { background: var(--yj-tab-skills); }
.yj-hd-projects { background: var(--yj-tab-projects); }
.yj-hd-blog     { background: var(--yj-tab-blog); }
.yj-hd-contact  { background: #6a3a3a; }
.yj-hd-profile  { background: #3a4a6a; }
.yj-hd-pro      { background: #8a4a10; }
.yj-hd-misc     { background: var(--yj-tab-other); }

/* highlighted box variant (for recruiter callout) */
.yj-box-highlight {
  border-color: #c89040;
}


/* ========================================================================== */
/*  DIRECTORY LINKS (LEFT COLUMN)                                             */
/* ========================================================================== */
/* dense categorized link lists. THE Yahoo JP left column.
   bold category names with sub-links indented below.
   small text, tight padding, maximum information density.             ===  */

.yj-dir {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yj-dir > li {
  padding: 3px 0;
  border-bottom: 1px solid var(--yj-border-light);
  font-size: 12px;
}

.yj-dir > li:last-child {
  border-bottom: none;
}

.yj-dir > li > b > a {
  font-size: 12px;
}

.yj-dir ul {
  list-style: none;
  margin: 2px 0 0 0;
  padding: 0 0 0 12px;
  font-size: 11px;
}

.yj-dir ul li {
  padding: 1px 0;
}

.yj-dir ul li::before {
  content: '\203A ';
  color: var(--yj-text-light);
}

/* compact link lists (external links, etc) */
.yj-links-compact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yj-links-compact li {
  padding: 2px 0;
  border-bottom: 1px dotted var(--yj-border-light);
  font-size: 11px;
}

.yj-links-compact li:last-child {
  border-bottom: none;
}

.yj-links-compact a::after {
  content: ' \00BB';
  color: var(--yj-text-light);
  text-decoration: none;
  display: inline;
}


/* ========================================================================== */
/*  QUOTE BOX                                                                 */
/* ========================================================================== */

.yj-quote-box {
  padding: 8px;
}

.yj-quote {
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-style: italic;
  color: var(--yj-text-muted);
  line-height: 1.5;
  border-left: 2px solid var(--yj-border);
  padding-left: 8px;
}

.yj-quote cite {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--yj-text-light);
  margin-top: 6px;
}


/* ========================================================================== */
/*  BADGES                                                                    */
/* ========================================================================== */

.yj-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  padding: 6px;
}

.yj-badges img {
  image-rendering: pixelated;
  height: 31px;
  display: block;
}


/* ========================================================================== */
/*  FEATURED / HERO AREA (CENTER COLUMN)                                      */
/* ========================================================================== */
/* the "main story" area at the top of the center column.
   Yahoo JP always had a featured/headline section here.
   profile photo + welcome text, compact and informative.              ===  */

.yj-featured {
  border: 1px solid var(--yj-border);
  margin-bottom: 8px;
  background: var(--yj-bg);
}

.yj-featured-hd {
  background: var(--yj-header-bg);
  padding: 5px 10px;
  display: flex;
  align-items: center;
}

.yj-featured-label {
  font-family: var(--yj-font-heading);
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
}

.yj-featured-bd {
  padding: 10px;
}

.yj-featured-profile {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.yj-pfp {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--yj-border);
  flex-shrink: 0;
}

.yj-featured-profile p {
  margin: 0 0 4px 0;
  font-size: 12px;
  line-height: 1.5;
}

.yj-featured-links {
  padding-top: 6px;
  border-top: 1px solid var(--yj-border-light);
  font-size: 12px;
  font-weight: bold;
}

.page-home-yahoo .yj-featured-links a:visited {
  color: var(--yj-link);
}


/* ========================================================================== */
/*  NEWS / HEADLINES                                                          */
/* ========================================================================== */
/* yahoo JP's news section. date stamps, headline links, NEW tags.
   dense list with alternating row backgrounds.                        ===  */

.yj-news-list {
  padding: 4px 8px;
}

.yj-news-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yj-news-list li {
  padding: 4px 0;
  border-bottom: 1px dotted var(--yj-border-light);
  font-size: 12px;
}

.yj-news-list li:last-child {
  border-bottom: none;
}

.yj-news-list li:nth-child(even) {
  background: var(--yj-bg-alt);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.yj-news-date {
  font-size: 10px;
  color: var(--yj-text-light);
  margin-right: 4px;
  font-family: var(--yj-font);
}

.yj-news-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: bold;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.yj-tag-new {
  background: #cc0000;
  color: #ffffff;
}

.yj-tag-update {
  background: var(--yj-tab-about);
  color: #ffffff;
}


/* ========================================================================== */
/*  INFO TABLE (ABOUT SECTION)                                                */
/* ========================================================================== */
/* two-column table with label | value pairs. Yahoo JP used these
   for profile/account info. clean, bordered, alternating rows.        ===  */

.yj-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 12px;
}

.yj-info-table td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--yj-border-light);
  vertical-align: top;
}

.yj-info-table tr:nth-child(even) {
  background: var(--yj-bg-alt);
}

.yj-info-table tr:last-child td {
  border-bottom: none;
}

.yj-info-label {
  width: 85px;
  font-weight: bold;
  color: var(--yj-text-muted);
  white-space: nowrap;
  font-size: 11px;
}

.yj-section-text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.yj-section-text p {
  margin: 0;
}


/* ========================================================================== */
/*  MISSION GRID                                                              */
/* ========================================================================== */

.yj-mission-grid {
  display: flex;
  gap: 8px;
}

.yj-mission-item {
  flex: 1;
  border: 1px solid var(--yj-border-light);
  padding: 8px;
  background: var(--yj-bg-alt);
}

.yj-mission-item h4 {
  font-size: 12px;
  font-weight: bold;
  margin: 0 0 6px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--yj-border);
  color: var(--yj-tab-about);
}

.yj-mission-item p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}


/* ========================================================================== */
/*  SKILLS / PROP-SHEET OVERRIDES                                             */
/* ========================================================================== */
/* keep the CSS-only radio-button tab mechanism from style.css
   but strip all Win98 chrome. flat styling in the Yahoo JP vein.      ===  */

.page-home-yahoo .prop-sheet {
  background: var(--yj-bg-alt);
  border: 1px solid var(--yj-border);
  box-shadow: none;
  font-family: var(--yj-font);
  margin: 0;
}

.page-home-yahoo .prop-sheet > label {
  font-family: var(--yj-font);
  font-size: 11px;
  background: #e0e0e0;
  border: 1px solid var(--yj-border);
  border-bottom: none;
  color: var(--yj-text);
  padding: 4px 10px;
  position: relative;
  top: 1px;
  cursor: pointer;
  box-shadow: none;
}

.page-home-yahoo .prop-sheet > label:first-of-type {
  margin-left: 4px;
}

.page-home-yahoo .prop-sheet > label:hover {
  background: #eaeaea;
}

.page-home-yahoo .prop-sheet > input[type="radio"]:checked + label {
  background: var(--yj-bg);
  border-color: var(--yj-border) var(--yj-border) transparent var(--yj-border);
  z-index: 2;
  padding-bottom: 5px;
  font-weight: bold;
  box-shadow: none;
}

.page-home-yahoo .prop-sheet-body {
  background: var(--yj-bg);
  border-top: 1px solid var(--yj-border);
  box-shadow: none;
}

.page-home-yahoo .prop-sheet-panel .panel-inset {
  background: var(--yj-bg);
  border: 1px solid var(--yj-border-light);
  box-shadow: none;
}

.page-home-yahoo .prop-sheet-panel .panel-inset p {
  font-family: var(--yj-font);
  font-size: 12px;
  color: var(--yj-text);
  line-height: 1.6;
}

.page-home-yahoo .prop-sheet-panel .skill-badge {
  font-family: var(--yj-font);
  font-size: 11px;
}

/* colored tab-top accents */
.page-home-yahoo .prop-sheet > label::before {
  height: 3px;
  top: -1px;
  left: -1px;
  right: -1px;
}


/* ========================================================================== */
/*  PROJECTS TABLE                                                            */
/* ========================================================================== */
/* 2x2 table grid for project categories. simple bordered table.
   Yahoo JP presented categories this way - no cards, just cells.      ===  */

.yj-project-table {
  width: 100%;
  border-collapse: collapse;
}

.yj-project-table td {
  width: 50%;
  padding: 8px 10px;
  border: 1px solid var(--yj-border-light);
  font-size: 12px;
}

.yj-project-table td:hover {
  background: var(--yj-bg-alt);
}

.yj-project-table a {
  font-weight: bold;
}


/* ========================================================================== */
/*  BLOG ENTRY                                                                */
/* ========================================================================== */

.yj-blog-entry {
  padding: 4px 0;
}

.yj-blog-entry h4 {
  font-size: 12px;
  font-weight: bold;
  margin: 0 0 4px 0;
}

.yj-blog-entry p {
  margin: 0;
  font-size: 12px;
}


/* ========================================================================== */
/*  FAQ                                                                       */
/* ========================================================================== */

.yj-faq dl {
  margin: 0;
}

.yj-faq dt {
  font-weight: bold;
  font-size: 12px;
  padding: 4px 0 2px 0;
  color: var(--yj-text);
}

.yj-faq dd {
  margin: 0 0 6px 0;
  padding: 0 0 6px 12px;
  border-bottom: 1px dotted var(--yj-border-light);
  font-size: 12px;
  line-height: 1.5;
}

.yj-faq dd:last-child {
  border-bottom: none;
}


/* ========================================================================== */
/*  PROFILE CARD (RIGHT COLUMN)                                               */
/* ========================================================================== */

.yj-profile-card {
  text-align: center;
  padding: 10px 8px;
}

.yj-profile-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--yj-border);
  display: block;
  margin: 0 auto 8px auto;
}

.yj-profile-info {
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.yj-profile-info b {
  font-size: 13px;
}

.yj-profile-actions {
  font-size: 11px;
  padding-top: 6px;
  border-top: 1px solid var(--yj-border-light);
}

.page-home-yahoo .yj-profile-actions a:visited {
  color: var(--yj-link);
}


/* ========================================================================== */
/*  RECRUITER / PRO BOX                                                       */
/* ========================================================================== */

.yj-box-highlight .yj-box-bd {
  background: #fff8f0;
  font-size: 11px;
}

.yj-box-highlight .yj-box-bd p {
  margin: 0 0 6px 0;
}

.yj-pro-link {
  display: inline-block;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 8px;
  background: #8a4a10;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #6a3a08;
}

.page-home-yahoo .yj-pro-link:visited {
  color: #ffffff;
}

.yj-pro-link:hover {
  background: #a05a18;
  color: #ffffff;
}


/* ========================================================================== */
/*  CONTACT LIST                                                              */
/* ========================================================================== */

.yj-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yj-contact-list li {
  padding: 3px 0;
  border-bottom: 1px dotted var(--yj-border-light);
  font-size: 11px;
}

.yj-contact-list li:last-child {
  border-bottom: none;
}


/* ========================================================================== */
/*  CURRENTLY... TABLE                                                        */
/* ========================================================================== */
/* LiveJournal energy. small definition table.                         ===  */

.yj-currently {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.yj-currently td {
  padding: 2px 4px;
  border-bottom: 1px dotted var(--yj-border-light);
}

.yj-currently tr:last-child td {
  border-bottom: none;
}

.yj-cur-label {
  font-weight: bold;
  color: var(--yj-text-muted);
  width: 70px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ========================================================================== */
/*  DECORATIONS                                                               */
/* ========================================================================== */

.yj-decorations {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 6px;
}


/* ========================================================================== */
/*  VISITOR COUNTER                                                           */
/* ========================================================================== */
/* the obligatory hit counter. monospaced digits, dark background.
   every Yahoo JP-era personal site had one                            ===  */

.yj-counter-box {
  text-align: center;
  padding: 8px;
}

.yj-counter-label {
  display: block;
  font-size: 10px;
  color: var(--yj-text-light);
  margin-bottom: 4px;
}

.yj-counter-digits {
  display: inline-flex;
  gap: 1px;
}

.yj-counter-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  background: #1a1a1a;
  color: #4caf50;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #333;
}

/* neutral template class aliases - scoped to the counter mount point */
.yj-counter-box .counter-label {
  display: block;
  font-size: 10px;
  color: var(--yj-text-light);
  margin-bottom: 4px;
}

.yj-counter-box .counter-digits {
  display: inline-flex;
  gap: 1px;
}

.yj-counter-box .counter-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  background: #1a1a1a;
  color: #4caf50;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #333;
}


/* ========================================================================== */
/*  FOOTER                                                                    */
/* ========================================================================== */
/* compact, utilitarian. pipe-separated nav, copyright, disclaimer.
   Yahoo JP footers were minimal. the border-top is full-width;       ===
   the constraint lives on the inner wrapper.                         ===  */

.yj-footer {
  border-top: 1px solid var(--yj-border);
  margin-top: 12px;
}

.yj-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 10px 16px 10px;
  text-align: center;
}

.yj-footer-nav {
  font-size: 11px;
  margin-bottom: 8px;
}

.yj-footer-nav a {
  text-decoration: none;
  color: var(--yj-link);
  margin: 0 4px;
}

.page-home-yahoo .yj-footer-nav a:visited {
  color: var(--yj-link);
}

.yj-footer-nav a:hover {
  text-decoration: underline;
}

.yj-footer-copy {
  font-size: 10px;
  color: var(--yj-text-light);
  margin: 4px 0 0 0;
}

.yj-footer-note {
  font-size: 9px;
  color: var(--yj-border-dark);
  margin: 2px 0 0 0;
}


/* ========================================================================== */
/*  RESPONSIVE                                                                */
/* ========================================================================== */
/* three columns -> two -> one. yahoo JP was never responsive
   but the content needs to be accessible on mobile.
   collapse left column first, then right column.                      ===  */

/* under 900px: hide left column, center + right remain */
@media (max-width: 900px) {
  .yj-col-left {
    display: none;
  }

  .yj-layout {
    gap: 6px;
  }
}

/* under 700px: single column, everything stacks */
@media (max-width: 700px) {
  .yj-layout {
    flex-direction: column;
    gap: 6px;
    padding: 0 6px;
  }

  .yj-col-left,
  .yj-col-center,
  .yj-col-right {
    width: 100%;
  }

  .yj-col-left {
    display: block;
    order: 2;
  }

  .yj-col-center {
    order: 1;
  }

  .yj-col-right {
    order: 3;
  }

  .yj-header-top {
    flex-wrap: wrap;
  }

  .yj-search {
    max-width: none;
    flex: 1 0 100%;
    order: 3;
    margin-top: 6px;
  }

  .yj-tabs-inner {
    flex-wrap: wrap;
    gap: 1px;
  }

  .yj-tab {
    font-size: 11px;
    padding: 4px 8px 3px 8px;
  }

  .yj-featured-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .yj-mission-grid {
    flex-direction: column;
  }
}

/* under 480px: tighten everything */
@media (max-width: 480px) {
  .yj-header-util {
    display: none;
  }

  .yj-box-bd {
    padding: 6px;
  }

  .yj-info-table td {
    display: block;
    width: 100%;
    padding: 2px 6px;
  }

  .yj-info-label {
    width: 100%;
    padding-bottom: 0;
  }

  .yj-project-table td {
    display: block;
    width: 100%;
  }
}
