/*
Theme Name: Tidewater
Theme URI:
Author: Tidewater Press
Author URI:
Description: Magazine-style block theme for long-form health guides: wide cover images, 18px body text, lab-value tables, food lists and reviewer bylines.
Version: 1.3.2
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tidewater
*/

/* ===== base ===== */

html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }
figure { margin: 0; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--wp--preset--color--coral); outline-offset: 3px; }

.eyebrow {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0;
}

.section-label,
.wp-block-post-terms.section-label {
  display: inline-block;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  color: var(--wp--preset--color--coral);
  text-decoration: none;
  margin: 0;
}
.section-label a { color: inherit; text-decoration: none; }
.section-label a:hover { text-decoration: underline; }

.band-title {
  font-size: var(--wp--preset--font-size--large);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--wp--preset--color--ink);
  margin-bottom: 28px;
}

/* ===== header ===== */

.topbar { border-bottom: 1px solid var(--wp--preset--color--line); padding-top: 16px; padding-bottom: 16px; }
.topbar-row { gap: 20px 40px; }
.brand-lockup { gap: 12px; }
.brand-lockup .wp-block-site-logo img { border-radius: 12px; display: block; }
.wp-block-site-title { margin: 0; }
.wp-block-site-title a { text-decoration: none; }
.wp-block-site-tagline { margin: 0; }

.topbar-nav { margin-left: auto; }
.wp-block-navigation .wp-block-navigation-item__content {
  font-weight: 500;
  font-size: 16px;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
  color: var(--wp--preset--color--ocean);
  border-bottom-color: var(--wp--preset--color--coral);
}
.wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--ink); }

.topbar-search .wp-block-search__inside-wrapper {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--wp--preset--color--cream);
}
.topbar-search .wp-block-search__input {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font: inherit;
  font-size: 15px;
  min-width: 0;
}
.topbar-search .wp-block-search__button {
  border: 0;
  background: var(--wp--preset--color--ocean);
  color: #fff;
  padding: 0 14px;
  margin: 0;
  border-radius: 0;
  cursor: pointer;
}
.topbar-search .wp-block-search__button svg { fill: currentColor; }

/* ===== home ===== */

.home-hero { margin-top: 0; }
.home-hero .eyebrow { margin-bottom: 16px; }
.home-title { line-height: 1.25; max-width: 18em; color: inherit; }
.home-lead { max-width: 36em; opacity: .9; }
.home-hero .wp-block-buttons { margin-top: 32px; }
.home-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .5); }
.home-hero .is-style-outline .wp-block-button__link:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.wp-block-tidewater-featured-story {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
  margin-top: 64px;
}
.story-media { display: block; }
.story-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--wp--custom--radius);
  display: block;
}
.story-label { font-size: var(--wp--preset--font-size--small); font-weight: 700; color: var(--wp--preset--color--coral); margin: 0 0 12px; }
.story-label a { color: inherit; text-decoration: none; }
.story-title { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 16px; }
.story-title a { color: inherit; text-decoration: none; }
.story-title a:hover { color: var(--wp--preset--color--ocean); }
.story-deck { font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--slate); font-size: 17px; line-height: 1.8; margin: 0 0 16px; }
.story-meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); margin: 0; }

.home-band { margin-top: 72px; }

.wp-block-tidewater-sections {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.section-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 24px 20px;
  background: var(--wp--preset--color--cream);
  border-radius: var(--wp--custom--radius);
  text-decoration: none;
  color: var(--wp--preset--color--ink);
  transition: background .15s;
}
.section-tile:hover { background: var(--wp--preset--color--mist); color: var(--wp--preset--color--ink); }
.section-tile-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.section-tile-desc { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); line-height: 1.7; }
.section-tile-count { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: var(--wp--preset--color--ocean); }

/* story grid (query loop cards and related posts) */
.story-grid { gap: 36px 32px; }
.story-grid.wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.story-grid .wp-block-post,
.story-card { display: flex; flex-direction: column; gap: 8px; }
.story-grid .wp-block-post-featured-image,
.story-card-media { margin: 0 0 6px; display: block; }
.story-grid .wp-block-post-featured-image img,
.story-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--wp--custom--radiusSmall);
  display: block;
}
.story-grid .wp-block-post-title,
.story-card h3 { font-size: 20px; line-height: 1.45; margin: 0; }
.story-grid .wp-block-post-title a,
.story-card h3 a { color: inherit; text-decoration: none; }
.story-grid .wp-block-post-title a:hover,
.story-card h3 a:hover { color: var(--wp--preset--color--ocean); }
.story-grid .wp-block-post-excerpt { margin: 0; }
.story-grid .wp-block-post-excerpt__excerpt { margin: 0; }
.story-grid .wp-block-post-date,
.story-card-date { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); }

.team-band { margin-top: 72px; }
.team-band .band-title { border-bottom-color: var(--wp--preset--color--ocean); }
.team-intro { max-width: 40em; color: var(--wp--preset--color--slate); }
.wp-block-tidewater-team {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.team-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--wp--preset--color--paper);
  border-radius: var(--wp--custom--radius);
  padding: 16px 18px;
}
.team-card > div { display: flex; flex-direction: column; min-width: 0; }
.team-name { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--ink); }
.team-title { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--coral); font-weight: 700; }
.team-license { font-size: 13px; color: var(--wp--preset--color--slate); }

.how-band { margin-top: 72px; margin-bottom: 72px; }
.how-band .wp-block-column { padding: 24px; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); }
.how-band h3 { font-size: 18px; margin: 0 0 8px; }
.how-band p { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); margin: 0; }
.how-band p a { font-weight: 700; }

/* ===== people (shared) ===== */

.headshot {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
  display: inline-block;
}
.headshot-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wp--preset--color--ocean);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.person { display: flex; gap: 10px; align-items: center; }
.person-text { display: flex; flex-direction: column; line-height: 1.4; }
.person-label { font-size: 12px; color: var(--wp--preset--color--slate); letter-spacing: .06em; }
.person-name { font-weight: 700; color: var(--wp--preset--color--ink); text-decoration: none; }
.person-name:hover { color: var(--wp--preset--color--ocean); }
.person-title { font-size: 13px; color: var(--wp--preset--color--coral); font-weight: 700; }

/* ===== article ===== */

.article-head { padding-top: 48px; }
.article-head .section-label { margin-bottom: 14px; }
.article-head .wp-block-post-title { margin: 0 0 20px; line-height: 1.3; }

.wp-block-tidewater-byline { margin-top: 0; }
.deck {
  font-family: var(--wp--preset--font-family--serif);
  font-size: var(--wp--preset--font-size--lead);
  line-height: 1.75;
  color: var(--wp--preset--color--slate);
  margin: 0 0 28px;
}
.byline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--wp--preset--color--line);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.byline-dates { display: flex; gap: 24px; margin: 0 0 0 auto; font-size: 13px; }
.byline-dates div { display: flex; flex-direction: column; line-height: 1.4; }
.byline-dates dt { color: var(--wp--preset--color--slate); letter-spacing: .06em; font-size: 12px; }
.byline-dates dd { margin: 0; font-weight: 700; }

.article-hero { margin-top: 40px; }
.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--wp--custom--radius);
  display: block;
}
.article-hero figcaption { text-align: center; margin-top: 10px; }

.wp-block-tidewater-contents {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--wp--preset--color--mist);
  border-radius: var(--wp--custom--radius);
}
.contents-label { font-size: var(--wp--preset--font-size--small); font-weight: 700; color: var(--wp--preset--color--ocean); letter-spacing: .08em; margin: 0 0 10px; }
.wp-block-tidewater-contents ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 32px;
  font-size: 16px;
  line-height: 1.6;
}
.wp-block-tidewater-contents li { break-inside: avoid; padding: 4px 0; }
.wp-block-tidewater-contents a { color: var(--wp--preset--color--ink); text-decoration: none; }
.wp-block-tidewater-contents a:hover { color: var(--wp--preset--color--ocean); text-decoration: underline; }

.article-body { margin-top: 40px; }
.article-body > p:first-child { font-size: 20px; line-height: 1.85; }
.article-body > * + * { margin-block-start: 24px; }
.article-body h2 { margin-top: 56px; padding-top: 16px; position: relative; }
.article-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--wp--preset--color--coral);
  border-radius: 2px;
}
.article-body h3 { margin-top: 36px; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 6px; }
.article-body img { border-radius: var(--wp--custom--radiusSmall); }
.article-body figcaption { margin-top: 8px; }
.article-body .wp-block-table table { border-collapse: collapse; width: 100%; }
.article-body .wp-block-table th,
.article-body .wp-block-table td { border: 1px solid var(--wp--preset--color--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.article-body .wp-block-table th { background: var(--wp--preset--color--cream); font-weight: 700; }
.article-body .wp-block-pullquote { margin-top: 40px; margin-bottom: 40px; text-align: left; }
.article-body .wp-block-pullquote p { margin: 0; font-size: inherit; line-height: inherit; }
.article-body .wp-block-pullquote cite { display: block; margin-top: 12px; font-family: var(--wp--preset--font-family--sans); font-style: normal; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); }

/* block styles used by the editors and the content pipeline */

.is-style-takeaway,
.is-style-who-box,
.is-style-drug-note,
.is-style-sources {
  padding: 22px 26px;
  border-radius: var(--wp--custom--radius);
}
.is-style-takeaway { background: var(--wp--preset--color--mist); }
.is-style-takeaway > p:first-child,
.is-style-who-box > p:first-child,
.is-style-drug-note > p:first-child,
.is-style-sources > p:first-child {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 8px;
}
.is-style-takeaway > p:first-child { color: var(--wp--preset--color--ocean); }
.is-style-takeaway ul, .is-style-takeaway ol { margin: 0; padding-left: 1.3em; }
.is-style-takeaway li { font-size: 17px; }

.is-style-who-box { background: var(--wp--preset--color--cream); }
.is-style-who-box > p:first-child { color: var(--wp--preset--color--slate); }
.is-style-who-box ul { margin: 0; padding-left: 1.3em; font-size: 17px; }

.is-style-drug-note { background: var(--wp--preset--color--coral-tint); border-left: 5px solid var(--wp--preset--color--coral); }
.is-style-drug-note > p:first-child { color: var(--wp--preset--color--coral); }
.is-style-drug-note p { font-size: 17px; }

.is-style-sources { border: 1px solid var(--wp--preset--color--line); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); }
.is-style-sources > p:first-child { color: var(--wp--preset--color--slate); }
.is-style-sources ol { margin: 0; padding-left: 1.4em; }
.is-style-sources li { font-size: 14px; line-height: 1.7; word-break: break-all; }
.is-style-sources li + li { margin-top: 4px; }

.article-body .is-style-lab-table table { font-variant-numeric: tabular-nums; }
.article-body .is-style-lab-table thead th { background: var(--wp--preset--color--ocean); color: #fff; border-color: var(--wp--preset--color--ocean); }
.article-body .is-style-lab-table tbody th,
.article-body .is-style-lab-table td:first-child { font-weight: 700; background: var(--wp--preset--color--cream); white-space: nowrap; }
.article-body .is-style-lab-table td { text-align: center; }
.article-body .is-style-lab-table td:first-child { text-align: left; }
.article-body .is-style-lab-table .has-coral-color { font-weight: 700; }

.article-body .is-style-day-plan td:first-child { white-space: nowrap; font-weight: 700; color: var(--wp--preset--color--ocean); background: var(--wp--preset--color--mist); width: 7em; }

ul.is-style-eat-more,
ul.is-style-eat-less { list-style: none; padding-left: 0; }
ul.is-style-eat-more li,
ul.is-style-eat-less li { position: relative; padding-left: 2.2em; }
ul.is-style-eat-more li::before,
ul.is-style-eat-less li::before {
  content: "多吃";
  position: absolute;
  left: 0;
  top: .45em;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  background: var(--wp--preset--color--ocean);
  color: #fff;
}
ul.is-style-eat-less li::before { content: "少吃"; background: var(--wp--preset--color--coral); }

.is-style-key-figures { text-align: center; }
.is-style-key-figures .wp-block-column { padding: 20px 12px; background: var(--wp--preset--color--cream); border-radius: var(--wp--custom--radius); }
.is-style-key-figures .wp-block-column > p:first-child { font-size: var(--wp--preset--font-size--display); font-weight: 900; line-height: 1; color: var(--wp--preset--color--ocean); margin: 0; letter-spacing: -.02em; }
.is-style-key-figures .wp-block-column > p + p { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); margin: 8px 0 0; line-height: 1.5; }

.wp-block-details { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radiusSmall); padding: 12px 18px; }
.wp-block-details + .wp-block-details { margin-top: 10px; }
.wp-block-details summary { font-weight: 700; cursor: pointer; }
.schema-faq-section { border-bottom: 1px solid var(--wp--preset--color--line); padding: 14px 0; }
.schema-faq-question { font-weight: 700; display: block; }

/* end of article */

.wp-block-tidewater-reviewer-card {
  margin-top: 56px;
  padding: 28px;
  background: var(--wp--preset--color--cream);
  border-radius: var(--wp--custom--radius);
}
.endnote-label { font-size: var(--wp--preset--font-size--small); font-weight: 700; letter-spacing: .08em; color: var(--wp--preset--color--slate); margin: 0 0 18px; }
.endnote-people { display: grid; gap: 24px; }
.endnote-person { display: flex; gap: 16px; align-items: flex-start; }
.endnote-person .headshot { width: 64px; height: 64px; border-radius: 16px; font-size: 24px; }
.endnote-name { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.endnote-name a { font-weight: 700; color: var(--wp--preset--color--ink); text-decoration: none; }
.endnote-license { margin: 2px 0 0; font-size: 13px; color: var(--wp--preset--color--slate); }
.endnote-bio { margin: 8px 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); line-height: 1.75; }

.wp-block-tidewater-related { margin-top: 72px; margin-bottom: 72px; }
.related-title { font-size: var(--wp--preset--font-size--large); padding-bottom: 12px; border-bottom: 2px solid var(--wp--preset--color--ink); margin: 0 0 28px; }
.wp-block-tidewater-related .story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== section (category) ===== */

.section-head .eyebrow { color: var(--wp--preset--color--coral); margin-bottom: 8px; }
.section-head .wp-block-query-title { margin: 0; font-size: 36px; }
.section-head .wp-block-term-description { max-width: var(--wp--style--global--wide-size, 1120px); color: var(--wp--preset--color--slate); margin-top: 12px; }
.section-head .wp-block-term-description p { margin: 0; max-width: 40em; }
.section-head + .wp-block-tidewater-featured-story { margin-top: 56px; }
.section-list { margin-top: 56px; margin-bottom: 72px; }
.section-list .wp-block-query-no-results p { color: var(--wp--preset--color--slate); }

.wp-block-query-pagination { margin-top: 48px; font-size: var(--wp--preset--font-size--small); }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--wp--preset--color--ink); }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--ink); color: #fff; }
.wp-block-query-pagination a:hover { background: var(--wp--preset--color--mist); }

/* ===== author ===== */

.wp-block-tidewater-profile-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.wp-block-tidewater-profile-card .headshot { width: 160px; height: 160px; border-radius: 28px; font-size: 56px; }
.profile-name { margin: 0 0 6px; font-size: 36px; }
.profile-title { margin: 0; font-weight: 700; color: var(--wp--preset--color--coral); }
.profile-license { margin: 2px 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); }
.profile-counts { margin: 12px 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ocean); font-weight: 700; }
.profile-bio { margin-top: 18px; max-width: 44em; }
.profile-bio p { margin: 0 0 12px; }
.author-list { margin-top: 48px; margin-bottom: 72px; }

/* ===== pages ===== */

.page-head { padding-top: 56px; }
.page-head .wp-block-post-title { margin: 0; }
.revised-date { margin: 12px 0 0; }
.page-body { margin-top: 32px; margin-bottom: 80px; }
.page-body > * + * { margin-block-start: 24px; }
.page-body h2 { margin-top: 48px; }
.page-body .wp-block-table th,
.page-body .wp-block-table td { border: 1px solid var(--wp--preset--color--line); padding: 10px 12px; }

/* ===== search / 404 ===== */

.search-head .wp-block-query-title { margin: 0 0 20px; font-size: 32px; }
.search-form-wide .wp-block-search__inside-wrapper { border: 1px solid var(--wp--preset--color--line); border-radius: 999px; overflow: hidden; background: #fff; }
.search-form-wide .wp-block-search__input { border: 0; padding: 12px 18px; font: inherit; font-size: 17px; }
.search-form-wide .wp-block-search__button { border: 0; background: var(--wp--preset--color--ocean); color: #fff; padding: 0 22px; margin: 0; border-radius: 0; font-weight: 700; cursor: pointer; }

.story-list.wp-block-post-template { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.story-list .wp-block-post { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.story-list .wp-block-post-featured-image { margin: 0; grid-row: span 4; }
.story-list .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--wp--custom--radiusSmall); display: block; }
.story-list .wp-block-post-title { font-size: 21px; margin: 0; }
.story-list .wp-block-post-title a { color: inherit; text-decoration: none; }
.story-list .wp-block-post-excerpt { margin: 0; }
.story-list .wp-block-post-date { margin: 0; }
.search-results { margin-top: 40px; margin-bottom: 72px; }
.search-none p { color: var(--wp--preset--color--slate); }

.topic-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topic-links li a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--ink);
}
.topic-links li a:hover { border-color: var(--wp--preset--color--ocean); color: var(--wp--preset--color--ocean); }
.topic-links .post-count { color: var(--wp--preset--color--slate); }

.lost-page { padding-top: 80px; padding-bottom: 96px; text-align: center; }
.lost-code { font-size: var(--wp--preset--font-size--display); font-weight: 900; color: var(--wp--preset--color--coral); margin: 0; line-height: 1; letter-spacing: -.02em; }
.lost-page h1 { margin: 12px 0 8px; }
.lost-page p { color: var(--wp--preset--color--slate); }
.lost-page .search-form-wide { max-width: 520px; margin: 28px auto 0; }
.lost-page .topic-links { justify-content: center; margin-top: 24px; }

/* ===== footer ===== */

.site-foot { margin-top: 0; }
.site-foot .wp-block-site-title a { color: #fff; }
.site-foot p { opacity: .85; }
.foot-cols { gap: 48px; }
.foot-heading { margin: 0 0 12px; letter-spacing: .08em; color: #fff; opacity: .7; }
.foot-list { list-style: none; margin: 0; padding: 0; font-size: var(--wp--preset--font-size--small); line-height: 2; }
.foot-list ul { list-style: none; padding: 0; margin: 0; }
.foot-list a { color: #fff; text-decoration: none; opacity: .9; }
.foot-list a:hover { opacity: 1; text-decoration: underline; }
.foot-list .post-count,
.foot-list .wp-block-categories-list li::after { opacity: .5; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); }
.foot-base p { margin: 0 0 8px; opacity: .65; }

/* 作者彙整 */
.people-group { margin: 0 0 48px; }
.people-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }
.people-card { display: flex; gap: 20px; align-items: flex-start; padding: 22px; background: var(--wp--preset--color--mist); border-radius: var(--wp--custom--radius); }
.people-card .headshot { width: 96px; height: 96px; flex: none; border-radius: 20px; font-size: 34px; }
.people-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.people-text .team-name { font-size: 20px; }
.people-bio { margin: 10px 0 0; font-size: var(--wp--preset--font-size--small); line-height: 1.75; }
.people-count { margin-top: 8px; font-size: 13px; color: var(--wp--preset--color--ocean); }

/* ===== responsive ===== */

@media (max-width: 960px) {
  .wp-block-tidewater-featured-story { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .wp-block-tidewater-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-block-tidewater-related .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-band, .team-band, .how-band { margin-top: 56px; }
}

@media (max-width: 720px) {
  .people-list { grid-template-columns: 1fr; }
  .people-card { padding: 18px; gap: 14px; }
  .people-card .headshot { width: 64px; height: 64px; border-radius: 14px; font-size: 24px; }
  .topbar-search { width: 100%; }
  .topbar-nav { margin-left: 0; }
  .home-title { font-size: 34px; }
  .home-lead { font-size: 18px; }
  .wp-block-tidewater-sections,
  .wp-block-tidewater-related .story-grid { grid-template-columns: 1fr; }
  .wp-block-tidewater-contents ol { columns: 1; }
  .byline-dates { margin-left: 0; width: 100%; }
  .wp-block-tidewater-profile-card { grid-template-columns: 1fr; gap: 20px; }
  .wp-block-tidewater-profile-card .headshot { width: 112px; height: 112px; }
  .story-list .wp-block-post { grid-template-columns: 1fr; gap: 10px; }
  .story-list .wp-block-post-featured-image { grid-row: auto; }
  .article-head { padding-top: 32px; }
  .article-head .wp-block-post-title { font-size: 30px; }
  .section-head .wp-block-query-title { font-size: 28px; }
  .endnote-person { flex-direction: column; }
}
