:root {
  --brand: #0088cc; --accent: #00afd7; --link: #007fae; --heading: #163e52;
  --ink: #536671; --muted: #738690; --line: #e2edf1; --wash: #f3f9fb; --width: 1200px;
}
/* Match the landing page: suppress vertical bounce, with a blue viewport fallback. */
html { overscroll-behavior-y: none; background: #0088cc; }
body { overscroll-behavior-y: none; }
* { box-sizing: border-box; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 17px/1.85 -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; text-underline-offset: .22em; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 5px;
}
.site-header { background: var(--brand); border-bottom: 4px solid #00a6d5; }
.header-inner {
  max-width: var(--width); margin: auto; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 108px;
}
.brand { display: block; flex: 0 1 380px; line-height: 0; }
.brand img { width: 100%; height: auto; max-width: 380px; }
.main-nav { display: flex; gap: 34px; align-items: center; flex-shrink: 0; }
.main-nav a {
  position: relative; padding: 11px 0; color: white; font-size: 17px;
  font-weight: 600; letter-spacing: .04em; white-space: nowrap;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 1px; left: 0; width: 100%; height: 2px;
  background: #fff; transform: scaleX(0); transition: transform .18s ease;
}
.main-nav .nav-current::after, .main-nav a:hover::after { transform: scaleX(1); }
.main-nav a:hover { color: #e2f9ff; }
.mobile-menu { display: none; }
.preview { background: var(--wash); color: var(--ink); text-align: center; font-size: 12px; padding: 5px 16px; }
main { max-width: var(--width); margin: 18px auto 80px; padding: 0 28px; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 54px; align-items: start; }
.content-column, .article { min-width: 0; }
h1, h2 { color: var(--heading); }
h1 { font-size: 30px; line-height: 1.5; font-weight: 650; margin: 0 0 20px; letter-spacing: .025em; }
h2 { font-size: 24px; line-height: 1.5; font-weight: 600; }
.listing-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 18px; border-bottom: 1px solid var(--line); padding: 0 0 22px; margin: 0 0 30px;
}
.listing-header h1 { margin: 0; font-size: 28px; display: flex; align-items: center; gap: 13px; }
.listing-header h1::before { content: ''; width: 4px; height: 26px; background: var(--accent); border-radius: 3px; }
.search {
  display: flex; align-items: center; justify-content: flex-end; gap: 9px;
  width: 220px; max-width: 46%; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid transparent; transition: border-color .18s ease;
}
.search-icon { display: block; flex: 0 0 14px; line-height: 0; cursor: text; }
.search-icon::before {
  content: ''; width: 14px; height: 14px; display: inline-block; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m15 15 6 6' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.search:hover, .search:focus-within { color: var(--brand); }
.search:focus-within { border-bottom-color: #9bcddb; }
.search input {
  width: 5em; min-width: 0; padding: 7px 0; border: 0; border-radius: 0;
  background: transparent; color: var(--heading); font: inherit; line-height: 1.5;
  text-align: right; appearance: none; transition: width .18s ease; cursor: text;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus, .search input:not(:placeholder-shown) { width: calc(100% - 23px); text-align: left; }
.search input:focus-visible { outline: none; }
.search-status { font-size: 14px; margin: 0 0 20px; color: var(--muted); }
.search-status:empty { display: none; }
.entry {
  display: grid; grid-template-columns: 39% minmax(0,1fr); gap: 25px;
  padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--line);
}
.entry:last-child { margin-bottom: 0; }
.entry-image { display: block; line-height: 0; align-self: start; overflow: hidden; border-radius: 10px; background: var(--wash); }
.entry-image img { display: block; width: 100%; height: auto; aspect-ratio: 26/17; object-fit: cover; transition: transform .25s ease; }
.entry-image:hover img { transform: scale(1.025); }
.entry h2 { font-size: 22px; line-height: 1.6; margin: 9px 0 12px; font-weight: 600; overflow-wrap: anywhere; letter-spacing: .015em; }
.entry h2 a { color: var(--heading); transition: color .15s ease; }
.entry h2 a:hover { color: var(--brand); }
.entry p { margin: 0 0 17px; font-size: 15px; line-height: 1.9; }
.entry time { font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.read-more { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; letter-spacing: .03em; }
.read-more::after { content: '→'; font-size: 17px; transition: transform .18s ease; }
.read-more:hover::after { transform: translateX(4px); }
.side h2 { font-size: 20px; font-weight: 600; line-height: 1.5; margin: 0; padding: 0 0 15px; border-bottom: 2px solid var(--line); position: relative; letter-spacing: .05em; }
.side h2::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 38px; height: 2px; background: var(--accent); }
.recent-posts { list-style: none; margin: 0; padding: 0; }
.recent-posts li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.recent-posts a { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 15px; color: var(--ink); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.recent-posts a:hover { color: var(--brand); }
.recent-posts img { width: 76px; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--wash); border-radius: 7px; }
.advertisement { margin: 0 0 38px; max-width: 100%; }
.wg-sidebar { min-width: 0; }
@media (max-width: 680px) { .wg-sidebar { margin-top: 30px; } }
.article h1 { font-size: clamp(28px,2.6vw,36px); line-height: 1.55; font-weight: 650; letter-spacing: .015em; margin-bottom: 24px; }
.article-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.article-meta time { font-size: inherit; }
.crumb { font-size: 12px; margin: 0 0 24px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.body { margin-top: 30px; overflow-wrap: anywhere; font-size: 18px; line-height: 1.95; color: #3d515d; }
.body img { max-width: 100%; height: auto!important; border-radius: 8px; }
.body img.emoji { width: 1em!important; height: 1em!important; display: inline; vertical-align: -.1em; border-radius: 0; }
.body figure, .body .wp-caption { max-width: 100%!important; margin: 26px auto; }
.body h1, .body h2, .body h3 { font-size: 25px; line-height: 1.6; color: var(--heading); margin-top: 1.5em; }
.body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.body td, .body th { padding: 8px 12px; border: 1px solid var(--line); }
.body th { background: var(--wash); }
.body blockquote { border-left: 3px solid var(--accent); background: var(--wash); margin: 28px 0; padding: 14px 24px; border-radius: 0 8px 8px 0; }
.body a { overflow-wrap: anywhere; text-decoration: underline; }
.body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.body .wp-caption-text { font-size: 13px; color: var(--muted); }
.body pre { overflow-x: auto; }
.body iframe { max-width: 100%; }
.policy-page { max-width: 850px; margin: 0 auto; }
.policy-page > h1 { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.policy-page .policy-body { white-space: pre-line; }
.policy-body p, .policy-body ul { margin: 0 0 1em; }
.policy-body h2 { font-size: 23px; margin: 1.6em 0 .6em; }
.policy-body li { margin-bottom: .4em; }
.worksheet-intro { margin: 0 0 24px; font-size: 17px; }
.worksheet-actions { margin: 24px 0 30px; }
.worksheet-download { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 20px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.6; }
.worksheet-download:hover { color: #fff; background: var(--link); }
.worksheet-actions p, .worksheet-help { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.worksheet-preview { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--wash); }
.worksheet-preview h2 { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.worksheet-preview iframe { display: block; width: 100%; height: clamp(420px, 75vh, 700px); border: 0; background: #fff; }
.worksheet-help a { text-decoration: underline; }
@media (max-width: 520px) { .worksheet-download { width: 100%; } }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 32px 0 0; font-size: 13px; }
.pager a { border: 1px solid #d0e4ec; border-radius: 6px; padding: 9px 16px; transition: background .15s ease; }
.pager a:hover { background: var(--wash); }
.pagination { display: block; }
.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-bottom: 20px; }
.page-numbers a, .page-current { display: inline-grid; place-items: center; min-width: 40px; min-height: 44px; padding: 8px 10px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.page-current { background: var(--brand); color: #fff; font-weight: 600; }
.page-gap { color: var(--muted); }
.page-directions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.archive-intro { margin: -10px 0 28px; color: var(--muted); font-size: 15px; }
.archive h2 { font-size: 20px; margin: 30px 0 16px; }
.archive-years, .archive-categories, .archive-articles { padding: 0; margin: 0; list-style: none; }
.archive-years { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.archive-years a { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--heading); font-size: 26px; font-weight: 600; }
.archive-years a:hover { background: var(--wash); border-color: var(--accent); }
.archive-years small { margin-left: 5px; font-size: 13px; font-weight: 400; }
.archive-count { color: var(--muted); font-size: 13px; font-weight: 400; }
.archive-categories, .archive-months { display: flex; flex-wrap: wrap; gap: 10px; }
.archive-categories a, .archive-months a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.archive-categories a:hover, .archive-months a:hover { background: var(--wash); }
.archive-month h2 { border-bottom: 2px solid var(--line); padding-bottom: 12px; scroll-margin-top: 24px; }
.archive-month h2 .archive-count { margin-left: 10px; }
.archive-articles li { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line); }
.archive-articles time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.archive-articles a { padding: 13px 0; color: var(--heading); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.archive-articles a:hover { color: var(--link); text-decoration: underline; }
.archive-link { display: inline-block; margin-top: 18px; font-size: 14px; }
.muted { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.empty { padding: 24px 0; }
.site-footer { border-top: 1px solid #d9e0e4; background: #edf0f2; color: #65727b; font-size: 14px; }
.footer-inner { max-width: var(--width); margin: auto; padding: 42px 28px 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px; }
.footer-grid h2 { margin: 0 0 19px; color: var(--link); font-size: 20px; font-weight: 500; letter-spacing: .03em; }
.footer-grid p { margin: 0 0 20px; overflow-wrap: anywhere; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--brand); }
.footer-recent { margin: 0; padding: 0; list-style: none; }
.footer-recent li { border-top: 1px solid #d9e0e4; padding: 9px 0; line-height: 1.75; overflow-wrap: anywhere; }
.footer-bottom { text-align: center; margin-top: 42px; }
.footer-bottom p { margin: 14px 0 0; font-size: 12px; }
.site-footer .back-top { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 23px; line-height: 1; }
.site-footer .back-top:hover { background: var(--brand); color: #fff; }
@media (min-width: 1240px) { .layout { grid-template-columns: minmax(0,1fr) 336px; } }
@media (max-width: 1050px) {
  .main-nav { gap: 24px; } .main-nav a { font-size: 16px; } .brand { flex-basis: 330px; }
  .layout { gap: 32px; } .entry { grid-template-columns: 1fr; gap: 18px; } .entry-image img { aspect-ratio: 16/9; }
}
@media (max-width: 800px) {
  .header-inner { gap: 16px; padding: 16px 24px; min-height: 80px; }
  .brand { flex: 1 1 auto; width: auto; min-width: 0; max-width: 300px; }
  .main-nav { display: none; }
  .mobile-menu { display: block; position: relative; flex: 0 0 44px; }
  .mobile-menu summary {
    width: 44px; height: 44px; display: flex; align-items: center;
    justify-content: center; color: #fff; cursor: pointer; list-style: none;
    border: 1px solid #ffffff50; border-radius: 8px; background: #ffffff0d;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor;
  }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; } .menu-icon::after { top: 5px; }
  .mobile-menu[open] .menu-icon { background: transparent; }
  .mobile-menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .mobile-menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .mobile-menu nav {
    position: absolute; right: 0; top: calc(100% + 12px); z-index: 20;
    width: min(260px, calc(100vw - 48px)); padding: 8px; background: #fff;
    border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px #163e5229;
  }
  .mobile-menu nav a { display: block; padding: 12px 14px; border-radius: 6px; color: var(--heading); font-size: 16px; font-weight: 500; }
  .mobile-menu nav a:hover, .mobile-menu nav .nav-current { background: var(--wash); color: var(--link); }
  main { padding: 0 24px; margin: 14px auto 52px; }
  .layout { grid-template-columns: 1fr; gap: 42px; }
  .listing-header { padding-bottom: 18px; margin-bottom: 24px; } .listing-header h1 { font-size: 25px; }
  .entry { grid-template-columns: 38% minmax(0,1fr); gap: 24px; padding-bottom: 27px; margin-bottom: 27px; }
  .entry-image img { aspect-ratio: 26/19; } .entry h2 { font-size: 21px; } .entry p { margin-bottom: 12px; }
  .article h1 { font-size: 30px; } .body { font-size: 17px; }
  .side { border-top: 1px solid var(--line); padding-top: 28px; }
  .advertisement { max-width: 336px; margin: 0 auto 32px; }
  .recent-posts a { grid-template-columns: 76px minmax(0,1fr); }
  .footer-inner { padding: 34px 24px 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px; }
  .footer-grid > section:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .header-inner { padding-left: 22px; padding-right: 22px; }
  main { padding: 0 22px; margin-top: 14px; }
  .listing-header { gap: 12px; } .listing-header h1 { font-size: 24px; } .search { font-size: 12px; }
  .entry { grid-template-columns: 1fr; gap: 16px; padding-bottom: 28px; margin-bottom: 28px; }
  .entry-image img { aspect-ratio: 26/17; } .entry h2 { font-size: 23px; line-height: 1.55; margin-top: 8px; }
  .entry p { font-size: 16px; } .article h1 { font-size: 28px; } .article-meta { gap: 6px 16px; }
  .body blockquote { padding: 12px 18px; } .pager a { padding: 8px 12px; }
  .pagination .page-numbers a { padding: 8px 10px; }
  .page-directions a { padding: 8px; font-size: 12px; }
  .archive-years { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .archive-years a { padding: 16px; }
  .archive-articles li { gap: 10px; }
  .footer-inner { padding-left: 22px; padding-right: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid h2 { margin-bottom: 13px; font-size: 19px; }
  .footer-grid p { margin-bottom: 12px; }
  .footer-bottom { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none!important; } }

@media (max-width: 360px) { .advertisement { width: calc(100% + 24px); max-width: none; margin-left: -12px; margin-right: -12px; } }

/* Fixed display-ad dimensions; house creatives share the same reserved space. */
.landing-ad{margin-top:0;text-align:center;container-type:inline-size}
.landing-ad-label{display:block;margin-bottom:6px;font-size:11px;letter-spacing:.08em;color:#526b78}
.landing-ad-slot{position:relative;left:50%;transform:translateX(-50%);width:300px;height:250px;max-width:100%;background:#fafbfc;display:grid;place-items:center}
.landing-ad-slot>[data-house-slot]{width:100%;height:100%}
.landing-ad-slot>[data-paid-slot]{max-width:100%;line-height:0}
@container(min-width:336px){.landing-ad-slot{width:336px;height:280px}}
.landing-ad[data-ad-size=compact]:not([data-ad-state=house]) .landing-ad-slot{width:300px;height:250px}
.house-promo{height:100%;padding:17px 18px 15px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:5px;overflow:hidden;color:#193e55;background:#eff8fd;border:1px solid #c6dce9;text-decoration:none;text-align:center}
.house-promo-warm{color:#463923;background:#fcf7ed;border-color:#e0d1b5}
.house-promo:hover{text-decoration:none}.house-promo:hover .house-promo-cta{text-decoration:underline}
.house-promo-name{font-size:11px;letter-spacing:.06em;font-weight:600}
.house-promo strong{font-size:23px;line-height:1.35;font-weight:700}
.house-promo img{display:block;width:100%;height:auto;flex-shrink:0}
.house-promo-description{font-size:12px;line-height:1.5}
.house-promo-cta{display:inline-block;padding:5px 20px;border-radius:20px;background:#0088cc;color:#fff;font-size:13px;font-weight:600}
.house-promo-warm .house-promo-cta{background:#6d4d2e}


.house-promo-icon{padding-block:12px;gap:4px}
.house-promo-icon strong{font-size:21px}
.house-promo-icon img{width:64px;height:64px;border-radius:12px}

/* Local layout study only. Separate from all live ad selectors and controls. */
.display-ad-preview{margin:28px 0 36px;text-align:center;container-type:inline-size}
.display-ad-preview-label{display:block;margin-bottom:8px;color:#657b86;font-size:11px;line-height:18px;letter-spacing:.12em}
.display-ad-preview-surface{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:300px;max-width:100%;height:250px;margin-inline:auto;border:1px dashed #b9cdd8;background:#f4f8fa;color:#657b86}
.display-ad-preview-title{font-size:15px;font-weight:500;line-height:1.5}.display-ad-preview-note{font-size:11px;line-height:1.5;color:#7e929d}
@container(min-width:468px){.display-ad-preview-surface{width:468px;height:60px;gap:3px}}
@container(min-width:728px){.display-ad-preview-surface{width:728px;height:90px;gap:6px}}
.adsense-placement{width:100%;min-width:0;margin:28px 0 36px;text-align:center;container-type:inline-size}
.adsense-placement[hidden],.adsense-placement [hidden]{display:none!important}
/* Live responsive ads have no fixed/max height and are never clipped to the mock. */
.adsense-placement [data-adsense-live]{width:100%;min-width:0}
/* The CMP owns the choice UI; this is only its persistent reopen link. */
.consent-settings{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;margin-left:.75em}
.consent-settings[hidden]{display:none}
.consent-settings:focus-visible{outline:2px solid currentColor;outline-offset:4px}

.body{white-space:pre-line}.body pre,.body code{white-space:pre-wrap}
