/* Self-contained, JIN-compatible frontend, 2 columns on mobile. */
.aghfd{--aghfd-ink:#253347;--aghfd-muted:#6b7584;--aghfd-edge:#e4e9f0;--aghfd-blue:#1b5fa7;--aghfd-sky:#edf5ff;color:var(--aghfd-ink);font-size:15px;line-height:1.65;max-width:1120px;margin:24px auto}.aghfd *{box-sizing:border-box}.aghfd a{text-decoration:none}.aghfd-hero{border-radius:18px;padding:26px 26px 23px;background:linear-gradient(115deg,#e9f3ff 0%,#fbfdff 72%);border:1px solid #dfeaf6;margin-bottom:22px}.aghfd-eyebrow{display:block;color:#4979ac;font-size:11px;letter-spacing:.14em;font-weight:700;margin-bottom:3px}.aghfd-hero h2{font-size:clamp(23px,3.6vw,32px);line-height:1.35;margin:0 0 7px;color:#193b61}.aghfd-hero p{font-size:14px;margin:0;color:#44566c}.aghfd-tabs{display:flex;gap:7px;margin:0 0 14px;flex-wrap:wrap}.aghfd-tabs a{display:inline-flex;justify-content:center;align-items:center;border-radius:100px;background:#f1f4f8;color:#44556a;padding:9px 15px;font-size:13px;font-weight:700}.aghfd-tabs a.is-active{background:#1b5fa7;color:white}.aghfd-filter{display:grid;grid-template-columns:2fr 1fr 1.3fr auto;gap:9px;align-items:end;padding:15px;background:#fff;border:1px solid var(--aghfd-edge);border-radius:13px;margin-bottom:17px}.aghfd-filter label{display:block;font-size:12px;color:#53657d;font-weight:700;margin-bottom:5px}.aghfd-filter input,.aghfd-filter select{display:block;width:100%;min-width:0;min-height:43px;padding:8px 11px;border:1px solid #d6dce5;border-radius:8px;background:#fff;color:#293d57;font-size:14px;box-shadow:none}.aghfd-filter button{cursor:pointer;min-height:43px;padding:10px 17px;border:0;border-radius:8px;background:#1b5fa7;color:#fff;font-size:13px;font-weight:700}.aghfd-filter button:hover,.aghfd-cta:hover{background:#11477f;color:#fff}.aghfd-count{font-size:13px;color:var(--aghfd-muted);font-weight:700;margin:0 0 12px}.aghfd-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.aghfd-card{min-width:0;background:#fff;border:1px solid var(--aghfd-edge);border-radius:14px;overflow:hidden;box-shadow:0 3px 15px rgba(23,47,77,.045);display:flex;flex-direction:column}.aghfd-card-cover{display:block;aspect-ratio:1.6;overflow:hidden;background:#f0f5fa}.aghfd-card-image{width:100%;height:100%;object-fit:cover;display:block}.aghfd-image-placeholder{height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e0edfb,#f7f9fc)}.aghfd-image-placeholder span{font-weight:800;color:#97b2d1;font-size:34px;letter-spacing:.2em}.aghfd-card-body{display:flex;flex-direction:column;flex:1;padding:15px}.aghfd-card-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.aghfd-badge,.aghfd-shop{display:inline-block;border-radius:5px;padding:3px 7px;font-size:11px;font-weight:700;line-height:1.4}.aghfd-badge--active{background:#e8f6ef;color:#137245}.aghfd-badge--upcoming{background:#edf2fe;color:#2559ad}.aghfd-badge--ended{background:#f0f1f3;color:#69737e}.aghfd-badge--unknown{background:#fdf3df;color:#916413}.aghfd-shop{background:#f2f4f8;color:#424c5f}.aghfd-shop--animate{background:#edf4ff;color:#245ca4}.aghfd-shop--gamers{background:#fff0f3;color:#a43553}.aghfd-work{color:#6d7d90;font-size:12px;margin:11px 0 3px;line-height:1.4}.aghfd-card h3{font-size:16px;line-height:1.45;margin:0 0 8px;font-weight:800;color:#233754}.aghfd-card h3 a{color:inherit}.aghfd-card h3 a:hover{color:#1b5fa7}.aghfd-period{margin:0 0 8px;color:#53667d;font-size:12px;font-weight:600}.aghfd-benefit{font-size:13px;color:#354b63;margin:0 0 13px}.aghfd-benefit strong{font-size:11px;color:#1b5fa7;white-space:nowrap}.aghfd-details{display:block;padding-top:10px;margin-top:auto;border-top:1px solid #edf0f4;font-size:12px;font-weight:700;color:#1b5fa7!important}.aghfd-details span{font-size:18px;vertical-align:-1px}.aghfd-empty{padding:35px 18px;text-align:center;background:#f7f9fc;border-radius:11px}.aghfd-empty strong{font-size:16px}.aghfd-empty p{color:#68798b;margin:7px 0}.aghfd-empty a{color:#1b5fa7}.aghfd-pagination{margin:24px 0}.aghfd-pagination ul{list-style:none!important;display:flex;flex-wrap:wrap;gap:6px;padding:0!important;margin:0!important}.aghfd-pagination li{margin:0!important}.aghfd-pagination a,.aghfd-pagination span{display:inline-block;padding:7px 12px;border-radius:7px;background:#eef3fa;color:#32567f}.aghfd-pagination .current{background:#1b5fa7;color:#fff}.aghfd-disclosure{font-size:11px;color:#6d7786;margin:20px 0 0}.aghfd-detail{margin-top:16px}.aghfd-detail-intro{margin-bottom:14px}.aghfd-facts{border:1px solid var(--aghfd-edge);border-radius:13px;margin:0;overflow:hidden}.aghfd-facts>div{display:grid;grid-template-columns:140px minmax(0,1fr);border-bottom:1px solid var(--aghfd-edge)}.aghfd-facts>div:last-child{border-bottom:0}.aghfd-facts dt{margin:0;padding:12px 14px;background:#f4f7fb;font-size:13px;font-weight:800;color:#496079}.aghfd-facts dd{margin:0;padding:12px 14px;overflow-wrap:anywhere;font-size:14px}.aghfd-action-row{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.aghfd-cta,.aghfd-official{display:inline-block;border-radius:9px;padding:12px 16px;font-size:13px;font-weight:700;text-align:center}.aghfd-cta{color:#fff!important;background:#1b5fa7}.aghfd-official{border:1px solid #ccd8e6;color:#245887!important;background:#fff}.aghfd-bottom{border-top:1px solid var(--aghfd-edge);padding-top:16px}.aghfd-bottom p{margin:4px 0}.aghfd-bottom a{font-weight:700;color:#1b5fa7}
@media(max-width:850px){.aghfd-filter{grid-template-columns:1fr 1fr}.aghfd-filter>div:first-child{grid-column:1/-1}.aghfd-filter button{grid-column:1/-1}.aghfd-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.aghfd-card-body{padding:11px}}
@media(max-width:480px){.aghfd{margin:15px auto}.aghfd-hero{padding:20px 15px}.aghfd-hero h2{font-size:22px}.aghfd-hero p{font-size:12px}.aghfd-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.aghfd-tabs a{padding:8px 2px;font-size:10px;white-space:nowrap}.aghfd-filter{padding:10px;gap:8px}.aghfd-filter label{font-size:11px}.aghfd-filter input,.aghfd-filter select{font-size:12px;min-height:39px}.aghfd-card-cover{aspect-ratio:1.35}.aghfd-card h3{font-size:13px}.aghfd-card-tags{gap:4px}.aghfd-badge,.aghfd-shop{font-size:9px;padding:3px 5px}.aghfd-work,.aghfd-period{font-size:10px}.aghfd-benefit{font-size:11px}.aghfd-details{font-size:11px}.aghfd-facts>div{grid-template-columns:94px minmax(0,1fr)}.aghfd-facts dt,.aghfd-facts dd{padding:10px;font-size:12px}.aghfd-action-row>a{width:100%}}

.aghfd-fair-main,.aghfd-fair-benefit{margin:12px auto 18px;text-align:center}.aghfd-fair-main img,.aghfd-fair-benefit img{max-width:100%;height:auto;border-radius:12px;display:inline-block}.aghfd-fair-main img{max-height:520px;object-fit:contain}.aghfd-fair-benefit img{max-height:340px;object-fit:contain}.aghfd-fair-benefit figcaption,.aghfd-image-credit{font-size:11px;line-height:1.5;color:#69788b;text-align:center;margin:5px 0 14px}.aghfd-image-credit a{color:#1b5fa7;text-decoration:underline}


/* v0.1.2 — database-oriented listing and single-page refinements. */
.aghfd-theme-page--directory .sns-top,
.aghfd-theme-page--directory .sns,
.aghfd-theme-page--directory .sns-design-type01,
.aghfd-theme-page--directory .sns-design-type02,
.aghfd-theme-page--directory .sns-share,
.aghfd-theme-page--directory .sns-follow,
.aghfd-theme-page--directory .follow-box,
.aghfd-theme-page--directory .follow-me {
    display: none !important;
}

/* JIN often injects the same share row above and below the content. Hide it
   only on fair single pages, not on posts elsewhere on the site. */
.aghfd-theme-page--single .sns-top,
.aghfd-theme-page--single .sns,
.aghfd-theme-page--single .sns-design-type01,
.aghfd-theme-page--single .sns-design-type02,
.aghfd-theme-page--single .sns-share {
    display: none !important;
}

.aghfd-hero {
    padding: 18px 20px;
    margin-bottom: 17px;
    border-radius: 13px;
}
.aghfd-hero h2 { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; margin: 0 0 5px; }
.aghfd-hero p { font-size: 13px; line-height: 1.7; }
.aghfd-card { height: 100%; }
.aghfd-card-cover { aspect-ratio: 1.45; }
.aghfd-card-image { object-fit: contain; background: #f4f7fb; }
.aghfd-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
    min-height: 4.35em;
    overflow-wrap: anywhere;
}
.aghfd-benefit { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.aghfd-grid--one, .aghfd-grid--two { justify-content: center; }
.aghfd-grid--one { grid-template-columns: minmax(0, 360px); }
.aghfd-grid--two { grid-template-columns: repeat(2, minmax(0, 360px)); }

/* The official shop page is the principal CTA; no additional ASP URL is required. */
.aghfd-action-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 17px 0 23px; }
.aghfd-action-row:has(> a:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aghfd-cta, .aghfd-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 11px;
    text-decoration: none !important;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: none;
}
.aghfd-cta { color: #fff !important; background: #1b5fa7; border: 1px solid #1b5fa7; }
.aghfd-cta--gamers { background: #9d2d56; border-color: #9d2d56; }
.aghfd-cta:hover { background: #11477f; color: #fff !important; }
.aghfd-cta--gamers:hover { background: #822343; }
.aghfd-official:hover { color: #16436d !important; border-color: #8fa9c7; background: #f4f8ff; }

/* Keep poster and benefit artwork legible without long, oversized vertical images. */
.aghfd-fair-main, .aghfd-fair-benefit { max-width: 100%; margin: 12px auto 15px; }
.aghfd-fair-main img {
    max-width: min(100%, 560px);
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.aghfd-fair-benefit img {
    max-width: min(100%, 420px);
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* If JIN adds the featured image before the_content, constrain it too. */
.aghfd-theme-page--single .post-thumbnail img,
.aghfd-theme-page--single .post-img img,
.aghfd-theme-page--single .post-image img,
.aghfd-theme-page--single .post-eyecatch img {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.aghfd-facts dt { font-size: 12px; }
.aghfd-facts dd { line-height: 1.65; }

@media (max-width: 850px) {
    .aghfd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aghfd-grid--one { grid-template-columns: minmax(0, 360px); }
    .aghfd-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .aghfd-hero { padding: 14px 15px; }
    .aghfd-hero h2 { font-size: 19px; }
    .aghfd-hero p { font-size: 12px; }
    .aghfd-card-cover { aspect-ratio: 1.32; }
    .aghfd-card h3 { min-height: 4.35em; }
    .aghfd-action-row, .aghfd-action-row:has(> a:nth-child(2)) { grid-template-columns: minmax(0, 1fr); }
    .aghfd-cta, .aghfd-official { font-size: 14px; min-height: 49px; }
    .aghfd-fair-main img { max-height: 260px; }
    .aghfd-fair-benefit img { max-height: 220px; }
    .aghfd-grid--one { grid-template-columns: minmax(0, 360px); }
}

/* Neutralize JIN's global heading ribbons / information icons inside the DB. */
.aghfd .aghfd-hero h2,
.aghfd .aghfd-card h3 {
    border: 0 !important;
    border-left: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.aghfd .aghfd-hero h2::before,
.aghfd .aghfd-hero h2::after,
.aghfd .aghfd-card h3::before,
.aghfd .aghfd-card h3::after { content: none !important; display: none !important; }
.aghfd-theme-page--single img.wp-post-image {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
}
@media (max-width: 480px) {
    .aghfd-theme-page--single img.wp-post-image { max-height: 260px; }
}

/* v0.1.3: image zoom and stronger centered artwork, including JIN featured art. */
.aghfd-fair-main,.aghfd-fair-benefit {
  width:100%; margin:14px auto 18px !important; text-align:center !important;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.aghfd-zoom-trigger {
  display:inline-flex; align-items:center; justify-content:center;
  padding:0; margin:0 auto; background:transparent; border:0; box-shadow:none;
  width:auto; max-width:100%; cursor:zoom-in; line-height:0; border-radius:9px;
}
.aghfd-zoom-trigger:focus-visible { outline:3px solid #1b5fa7; outline-offset:3px; }
.aghfd-fair-main .aghfd-zoom-trigger img {
  display:block; width:auto; height:auto; max-width:min(100%,550px); max-height:420px;
  object-fit:contain; border-radius:10px;
}
.aghfd-fair-benefit .aghfd-zoom-trigger img {
  display:block; width:auto; height:auto; max-width:min(100%,550px); max-height:380px;
  object-fit:contain; border-radius:10px;
}
.aghfd-zoom-hint { color:#627790; font-size:11px; font-weight:normal; line-height:1.4; }
.aghfd-fair-main figcaption { margin:4px 0 0; }
.aghfd-theme-page--single .post-thumbnail,
.aghfd-theme-page--single .post-img,
.aghfd-theme-page--single .post-image,
.aghfd-theme-page--single .post-eyecatch { text-align:center !important; }
.aghfd-theme-page--single img.wp-post-image { display:block !important; margin-left:auto !important; margin-right:auto !important; max-height:420px; }
.aghfd-theme-page--single img.wp-post-image.aghfd-feature-zoom { cursor:zoom-in; }
.aghfd-lightbox[hidden] { display:none !important; }
.aghfd-lightbox { position:fixed; z-index:2147483600; inset:0; background:rgba(8,17,34,.92); display:flex; align-items:center; justify-content:center; padding:55px 15px 24px; box-sizing:border-box; }
.aghfd-lightbox img { max-width:min(100%,1150px); max-height:calc(100vh - 85px); width:auto; height:auto; object-fit:contain; border-radius:5px; }
.aghfd-lightbox-close { position:absolute; top:11px; right:15px; min-width:42px; min-height:42px; padding:0 12px; color:#fff; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.25); border-radius:9px; cursor:pointer; font-size:26px; line-height:1; }
body.aghfd-modal-open { overflow:hidden; }
@media(max-width:480px) {
 .aghfd-fair-main .aghfd-zoom-trigger img {max-height:350px;}
 .aghfd-fair-benefit .aghfd-zoom-trigger img {max-height:330px;}
 .aghfd-theme-page--single img.wp-post-image {max-height:350px;}
}

/* v0.1.6 — Fair index only: clean JIN TOC, comfortable desktop grid and robust card titles. */
body.aghfd-theme-page--directory #toc_container,
body.aghfd-theme-page--directory #rtoc-mokuji-wrapper,
body.aghfd-theme-page--directory #ez-toc-container,
body.aghfd-theme-page--directory .rtoc-mokuji-wrapper,
body.aghfd-theme-page--directory .ez-toc-container {
  display: none !important;
}
/* Let the index act as a catalog rather than a sidebar-heavy article.
   Do not change single fair pages or ordinary blog posts. */
@media(min-width:1024px) {
  body.aghfd-theme-page--directory #sidebar { display:none !important; }
  body.aghfd-theme-page--directory #main-contents {
    width:100% !important; max-width:1160px !important;
    float:none !important; flex:1 1 100% !important;
    margin-left:auto !important; margin-right:auto !important;
  }
  body.aghfd-theme-page--directory .aghfd { max-width:1060px; }
}
.aghfd .aghfd-hero-title {
  display:block; font-size:clamp(19px,2.2vw,23px); line-height:1.45;
  font-weight:800; color:#193b61; margin:0 0 6px; padding:0 !important;
  background:transparent !important; border:0 !important;
}
.aghfd .aghfd-card-title {
  font-size:16px; line-height:1.45; font-weight:800; color:#233754;
  margin:0 0 8px; min-height:4.35em; overflow-wrap:anywhere;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3;
  line-clamp:3; overflow:hidden;
}
.aghfd .aghfd-card-title a { color:inherit; text-decoration:none !important; }
.aghfd .aghfd-card-title a:hover { color:#1b5fa7; }
.aghfd .aghfd-card-cover { position:relative; }
.aghfd .aghfd-card-cover .aghfd-image-placeholder { position:absolute; inset:0; }
.aghfd .aghfd-card-image { background:#f4f7fb; }
.aghfd .aghfd-result-header {
  display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 12px;
}
.aghfd .aghfd-result-header .aghfd-count { margin:0; }
.aghfd .aghfd-result-header .aghfd-count strong { font-size:17px; color:#223e65; }
.aghfd .aghfd-result-range { margin-left:10px; color:#687c92; font-weight:500; }
.aghfd .aghfd-next-top {
  color:#1b5fa7; font-size:13px; font-weight:750; padding:7px 11px;
  border:1px solid #b9d1ee; border-radius:8px; white-space:nowrap;
}
.aghfd .aghfd-next-top:hover { background:#edf5ff; color:#124b82; }
.aghfd .aghfd-filter-reset {
  grid-column:1/-1; justify-self:end; color:#285d98; font-size:12px;
  text-decoration:underline !important;
}
.aghfd .aghfd-tabs a:focus-visible,
.aghfd .aghfd-card a:focus-visible,
.aghfd .aghfd-next-top:focus-visible { outline:3px solid #2c75c0; outline-offset:3px; }
@media(max-width:850px) {
  .aghfd .aghfd-card-title { font-size:14px; }
}
@media(max-width:480px) {
  .aghfd .aghfd-hero-title { font-size:19px; }
  .aghfd .aghfd-card-title { font-size:13px; }
  .aghfd .aghfd-result-range { display:block; margin:1px 0 0; font-size:11px; }
  .aghfd .aghfd-next-top { font-size:11px; padding:7px 9px; }
}


/* v0.1.7 — JIN-safe pager. No <ul> or global .page-numbers selectors. */
body.aghfd-theme-page--directory .aghfd .aghfd-pager {
  display:block !important; position:relative; clear:both !important;
  width:100% !important; margin:24px 0 18px !important;
  padding:0 !important; float:none !important; height:auto !important;
}
body.aghfd-theme-page--directory .aghfd .aghfd-pager-items {
  display:flex !important; flex-direction:row !important; flex-wrap:wrap !important;
  justify-content:center !important; align-items:center !important;
  gap:8px !important; width:100% !important; margin:0 !important;
  padding:0 !important; clear:both !important;
}
body.aghfd-theme-page--directory .aghfd .aghfd-pager-link,
body.aghfd-theme-page--directory .aghfd .aghfd-pager-current,
body.aghfd-theme-page--directory .aghfd .aghfd-pager-ellipsis {
  display:inline-flex !important; float:none !important; clear:none !important;
  position:static !important; flex:0 0 auto !important;
  align-items:center !important; justify-content:center !important;
  width:auto !important; min-width:42px !important; height:42px !important;
  margin:0 !important; padding:0 12px !important; box-sizing:border-box !important;
  font-size:14px !important; line-height:1 !important;
  font-weight:700 !important; text-decoration:none !important;
  border:1px solid #d3dfec !important; border-radius:9px !important;
  background:#f7faff !important; color:#265582 !important;
  box-shadow:none !important; transform:none !important;
}
body.aghfd-theme-page--directory .aghfd .aghfd-pager-current {
  border-color:#1b5fa7 !important; background:#1b5fa7 !important; color:#fff !important;
}
body.aghfd-theme-page--directory .aghfd .aghfd-pager-link:hover {
  border-color:#1b5fa7 !important; background:#e9f3ff !important;
}
body.aghfd-theme-page--directory .aghfd .aghfd-pager-ellipsis {
  min-width:24px !important; padding:0 3px !important;
  border:0 !important; background:transparent !important;
}
body.aghfd-theme-page--directory .aghfd .aghfd-pager-status {
  display:block !important; width:100% !important; clear:both !important;
  text-align:center !important; margin:9px 0 0 !important;
  font-size:12px !important; color:#61738b !important;
}
body.aghfd-theme-page--directory .aghfd .aghfd-disclosure {
  clear:both !important; display:block !important;
  position:relative; width:100% !important; margin-top:22px !important;
  overflow-wrap:anywhere;
}

/* Fair detail: full-width catalog article instead of JIN's default sidebar layout.
   Scoped to the custom post type, with desktop-only sidebar removal. */
@media (min-width:1024px) {
  body.aghfd-theme-page--single #sidebar {
    display:none !important;
  }
  body.aghfd-theme-page--single #main-contents {
    float:none !important; flex:1 1 100% !important;
    width:100% !important; max-width:1160px !important;
    margin-left:auto !important; margin-right:auto !important;
  }
}
/* Center both JIN's featured image and plugin-controlled illustrations. */
body.aghfd-theme-page--single .post-thumbnail,
body.aghfd-theme-page--single .post-img,
body.aghfd-theme-page--single .post-image,
body.aghfd-theme-page--single .post-eyecatch {
  width:100% !important; max-width:100% !important;
  display:flex !important; justify-content:center !important;
  align-items:center !important; text-align:center !important;
}
body.aghfd-theme-page--single .post-thumbnail img,
body.aghfd-theme-page--single .post-img img,
body.aghfd-theme-page--single .post-image img,
body.aghfd-theme-page--single .post-eyecatch img,
body.aghfd-theme-page--single img.wp-post-image {
  display:block !important; width:auto !important; height:auto !important;
  max-width:min(100%, 600px) !important; max-height:530px !important;
  margin:0 auto !important; object-fit:contain !important;
}
body.aghfd-theme-page--single .aghfd-detail {
  width:100%; max-width:930px; margin:18px auto 0;
}
body.aghfd-theme-page--single .aghfd-facts {
  max-width:100%;
}
@media (max-width:767px) {
  body.aghfd-theme-page--single .post-thumbnail img,
  body.aghfd-theme-page--single .post-img img,
  body.aghfd-theme-page--single .post-image img,
  body.aghfd-theme-page--single .post-eyecatch img,
  body.aghfd-theme-page--single img.wp-post-image {
    max-height:400px !important;
  }
  body.aghfd-theme-page--directory .aghfd .aghfd-pager-link,
  body.aghfd-theme-page--directory .aghfd .aghfd-pager-current,
  body.aghfd-theme-page--directory .aghfd .aghfd-pager-ellipsis {
    min-width:39px !important; height:39px !important; padding:0 10px !important;
  }
}

/* v0.1.11 Series landing pages – chronological, indexable fair history */
.aghfd-series-shell{box-sizing:border-box;width:min(1180px,calc(100% - 30px));max-width:1180px;margin:20px auto 38px;padding:22px 25px;background:#fff;border-radius:12px;clear:both}
.aghfd-series-shell *{box-sizing:border-box}
.aghfd-series-breadcrumb{color:#748096;font-size:12px;margin:3px 0 9px;overflow-wrap:anywhere}
.aghfd-series-breadcrumb a{color:#2a6098;text-decoration:none}
.aghfd-series{margin:8px auto 0;max-width:1060px}
.aghfd-series-hero{border:1px solid #dfe8f5;border-radius:14px;background:linear-gradient(120deg,#edf5ff,#fff);padding:25px 24px 19px;margin-bottom:24px}
.aghfd-series-hero h1{font-size:clamp(20px,2.9vw,30px);line-height:1.48;margin:6px 0 10px;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#193e67}
.aghfd-series-hero h1::before,.aghfd-series-hero h1::after{content:none!important}
.aghfd-series-hero p{font-size:14px;line-height:1.85;color:#536276;margin:0 0 12px}
.aghfd-series-summary{display:flex;gap:9px;flex-wrap:wrap;font-size:12px;font-weight:750;color:#365a83}
.aghfd-series-summary span{padding:4px 9px;background:#fff;border:1px solid #dce7f5;border-radius:16px}
.aghfd-series-group,.aghfd-series-history{margin:30px 0}
.aghfd-series-group>h2,.aghfd-series-history>h2{font-size:clamp(19px,2.5vw,24px);color:#1e4068;margin:0 0 16px;padding:0 0 10px;border:0!important;border-bottom:2px solid #dbe9fa!important;background:none!important}
.aghfd-series-history>p{font-size:13px;color:#607086;margin:0 0 18px}
.aghfd-series-year{margin:24px 0}
.aghfd-series-year>h3{font-size:18px;margin:0 0 13px;padding:7px 11px;background:#f2f6fb;border-left:4px solid #2d72b0;color:#294e77;box-shadow:none}
.aghfd-series-jump{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.aghfd-series-jump a{background:#eef4fc;color:#286397;border:1px solid #dce7f5;border-radius:9px;padding:9px 15px;font-size:13px;font-weight:700;text-decoration:none}
.aghfd-series-return a{color:#1b5fa7;text-decoration:none;font-weight:700}
.aghfd-archive-notice{background:#f7f8fa;border-left:3px solid #9aa6b4;border-radius:6px;color:#51627b;padding:9px 12px;font-size:13px;line-height:1.6;margin:12px 0}
.aghfd-series-index{border:1px solid #e0e8f3;border-radius:12px;margin:0 0 18px;background:#fafcff;padding:8px 13px}
.aghfd-series-index summary{cursor:pointer;color:#245e9d;font-weight:700;font-size:13px;padding:6px 2px}
.aghfd-series-chip-list{display:flex;flex-wrap:wrap;gap:7px;padding:10px 0}
.aghfd-series-chip-list a{font-size:12px;padding:7px 9px;border:1px solid #d9e5f3;background:white;border-radius:8px;color:#245e9d;text-decoration:none}
.aghfd-series-chip-list span{font-size:10px;color:#7b899b}
.aghfd-work a{color:inherit;text-decoration:underline;text-decoration-color:#b3c9e0;text-underline-offset:2px}
@media(min-width:1024px){body.aghfd-theme-page--series #sidebar{display:none!important} body.aghfd-theme-page--series #main-contents{width:100%!important;max-width:100%!important}}
@media(max-width:600px){.aghfd-series-shell{width:calc(100% - 16px);padding:13px 11px;margin:12px auto 25px}.aghfd-series-hero{padding:17px 14px}.aghfd-series-hero h1{font-size:20px}.aghfd-series-hero p{font-size:12px}.aghfd-series-summary{gap:5px;font-size:10px}.aghfd-series-summary span{padding:3px 6px}.aghfd-series-year>h3{font-size:15px}.aghfd-series-group>h2,.aghfd-series-history>h2{font-size:18px}.aghfd-series-shell .aghfd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.aghfd-embedded-history{margin:28px 0}.aghfd-embedded-title{font-weight:800;font-size:20px;color:#244b73;margin:0 0 14px}.aghfd-embedded-more{text-align:right;margin-top:16px}.aghfd-embedded-more a{color:#1b5fa7;font-weight:700}
