/*
Theme Name: Ghid365 Pro
Theme URI: https://www.ghid365.ro/
Author: Ghid365
Author URI: https://www.ghid365.ro/
Description: Temă editorială rapidă, accesibilă și optimizată SEO, creată special pentru Ghid365.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghid365-pro
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --g365-accent: #f47b32;
  --g365-accent-dark: #c94f0b;
  --g365-ink: #12151a;
  --g365-muted: #626a76;
  --g365-line: #e7e9ed;
  --g365-soft: #f5f6f8;
  --g365-white: #fff;
  --g365-radius: 8px;
  --g365-shadow: 0 14px 38px rgba(18, 21, 26, .08);
  --g365-container: 1220px;
  --g365-headline: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--g365-ink);
  background: var(--g365-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--g365-accent-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-weight: 780;
  line-height: 1.14;
  font-family: var(--g365-headline);
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.35em; }
blockquote {
  margin: 2rem 0;
  padding: .4rem 0 .4rem 1.5rem;
  border-left: 4px solid var(--g365-accent);
  color: #343a44;
  font-size: 1.18em;
}
:focus-visible { outline: 3px solid rgba(244, 123, 50, .5); outline-offset: 3px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 8px; left: 8px; width: auto; height: auto;
  padding: .75rem 1rem; clip: auto; color: #000; background: #fff;
}
.g365-container { width: min(calc(100% - 40px), var(--g365-container)); margin-inline: auto; }
.site-main { min-height: 55vh; }

/* Newspaper header */
.site-header { position: relative; z-index: 50; background: #fff; }
.utility-bar { color: #d7dbe0; background: var(--g365-ink); font-size: .72rem; }
.utility-inner { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 1rem; }
.utility-meta { display: flex; align-items: center; gap: .8rem; }
.utility-meta strong { color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.utility-nav ul { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.utility-nav a { color: #d7dbe0; font-weight: 700; text-decoration: none; }
.utility-nav a:hover { color: #fff; }
.masthead { border-bottom: 1px solid var(--g365-line); }
.header-inner { display: grid; min-height: 96px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.site-branding { flex: 0 0 auto; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-height: 68px; }
.wordmark {
  display: inline-flex; align-items: flex-end; color: #090b0e;
  font-size: 2.15rem; font-weight: 900; line-height: .9; letter-spacing: -.075em; text-decoration: none;
}
.wordmark span { color: var(--g365-accent); }
.wordmark small { margin: 0 0 -.12rem .25rem; color: #8b929b; font-size: .42rem; letter-spacing: .16em; }
.masthead-note { color: var(--g365-muted); font-family: var(--g365-headline); font-size: .9rem; text-align: center; }
.masthead-note strong { display: block; color: var(--g365-ink); font-family: inherit; font-size: 1.05rem; }
.masthead-actions { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; }
.primary-navigation { border-bottom: 3px solid var(--g365-ink); background: #fff; }
.primary-navigation .g365-container > ul, .primary-navigation .menu { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.primary-navigation li { flex: 0 0 auto; }
.primary-navigation a {
  display: block; padding: .75rem .82rem; border-right: 1px solid var(--g365-line); color: #20242a;
  font-size: .78rem; font-weight: 820; letter-spacing: .035em; text-decoration: none; text-transform: uppercase;
}
.primary-navigation a:hover, .primary-navigation .current-menu-item > a, .primary-navigation .current-cat > a { color: #fff; background: var(--g365-ink); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-toggle__line, .menu-toggle::before, .menu-toggle::after {
  display: block; width: 23px; height: 2px; margin: 5px auto; background: currentColor; content: ""; transition: .2s ease;
}
.header-search { position: relative; }
.header-search summary {
  display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--g365-line);
  border-radius: 50%; list-style: none; color: var(--g365-ink);
}
.header-search summary::-webkit-details-marker { display: none; }
.header-search[open] summary { color: #fff; border-color: var(--g365-ink); background: var(--g365-ink); }
.header-search .search-form {
  position: absolute; top: calc(100% + 14px); right: 0; display: flex; width: min(92vw, 430px);
  padding: .6rem; border: 1px solid var(--g365-line); border-radius: 14px; background: #fff; box-shadow: var(--g365-shadow);
}
.breaking-bar { border-bottom: 1px solid var(--g365-line); background: var(--g365-soft); }
.breaking-inner { display: grid; min-height: 42px; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; overflow: hidden; }
.breaking-label { padding: .35rem .6rem; color: #fff; background: var(--g365-accent); font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.breaking-list { display: flex; min-width: 0; gap: 1.2rem; margin: 0; padding: 0; overflow: hidden; list-style: none; white-space: nowrap; }
.breaking-list li { position: relative; min-width: 0; }
.breaking-list li:not(:first-child)::before { position: absolute; left: -.7rem; color: #aeb4bd; content: "•"; }
.breaking-list a { display: block; max-width: 32vw; overflow: hidden; font-family: var(--g365-headline); font-size: .8rem; font-weight: 700; text-decoration: none; text-overflow: ellipsis; }
.search-field { min-width: 0; flex: 1; padding: .75rem .9rem; border: 1px solid var(--g365-line); border-radius: 10px 0 0 10px; }
.search-submit, .button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .45rem;
  padding: .75rem 1.1rem; border: 0; border-radius: 10px; color: #fff; background: var(--g365-ink);
  font-weight: 750; line-height: 1.2; text-decoration: none; transition: transform .18s ease, background .18s ease;
}
.search-submit { border-radius: 0 10px 10px 0; }
.button:hover, .search-submit:hover { color: #fff; background: var(--g365-accent-dark); transform: translateY(-1px); }
.button--accent { background: var(--g365-accent); }

/* Homepage */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .65rem; color: var(--g365-accent-dark);
  font-size: .76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { width: 24px; height: 3px; border-radius: 3px; background: var(--g365-accent); content: ""; }
.category-pill {
  display: inline-block; padding: .28rem .5rem; border-radius: 2px; color: #fff; background: var(--g365-accent);
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: .65rem; font-weight: 850; letter-spacing: .06em; line-height: 1.1; text-transform: uppercase; text-decoration: none;
}
.newspaper-front { padding-top: 2rem; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .9fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 1.6rem; border-bottom: 4px solid var(--g365-ink); }
.lead-story { min-width: 0; }
.lead-story--main { grid-row: 1 / 3; padding-right: 18px; border-right: 1px solid var(--g365-line); }
.lead-story__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--g365-soft); }
.lead-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lead-story:hover .lead-story__media img { transform: scale(1.02); }
.lead-story__content { padding-top: .8rem; }
.lead-story h2 { margin: .45rem 0 .55rem; font-size: clamp(2rem, 4vw, 3.45rem); }
.lead-story h3 { margin: .35rem 0 .4rem; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.lead-story h2 a, .lead-story h3 a { text-decoration: none; }
.lead-story p { margin: 0 0 .7rem; color: var(--g365-muted); font-size: .92rem; line-height: 1.55; }
.lead-story--side { display: grid; grid-template-columns: 44% 1fr; gap: .9rem; align-items: start; padding-bottom: .9rem; border-bottom: 1px solid var(--g365-line); }
.lead-story--side:last-child { align-self: end; }
.lead-story--side .lead-story__media { aspect-ratio: 4 / 3; }
.lead-story--side .lead-story__content { padding-top: 0; }
.lead-story--side .entry-meta span:last-child { display: none; }
.brief-strip { padding: 1.25rem 0 2rem; border-bottom: 1px solid var(--g365-line); }
.brief-heading { display: inline-block; margin: 0 0 1rem; padding: .35rem .65rem; color: #fff; background: var(--g365-ink); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.brief-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.brief-item { min-width: 0; padding: 0 1rem; border-left: 1px solid var(--g365-line); }
.brief-item:first-child { padding-left: 0; border-left: 0; }
.brief-item h3 { margin: .45rem 0 .45rem; font-size: 1rem; line-height: 1.25; }
.brief-item h3 a { text-decoration: none; }
.brief-item time { color: var(--g365-muted); font-size: .7rem; }
.front-section { padding: 2.6rem 0; }
.front-section--more { border-top: 4px solid var(--g365-ink); }
.newspaper-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); }
.news-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: .55rem; border-bottom: 4px solid var(--g365-ink); }
.news-section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.news-section-heading a { color: var(--g365-accent-dark); font-size: .75rem; font-weight: 850; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.news-list { display: grid; }
.news-row { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 1.2rem; padding: 0 0 1.35rem; margin-bottom: 1.35rem; border-bottom: 1px solid var(--g365-line); }
.news-row__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--g365-soft); }
.news-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-row:hover .news-row__media img { transform: scale(1.025); }
.news-row h3 { margin: .35rem 0 .45rem; font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.news-row h3 a { text-decoration: none; }
.news-row p { margin: .65rem 0 0; color: var(--g365-muted); font-size: .87rem; line-height: 1.5; }
.more-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.category-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 2.4rem; border-top: 1px solid var(--g365-line); }
.category-nav a { min-width: 0; padding: .55rem .15rem; border-bottom: 1px solid var(--g365-line); font-size: .76rem; font-weight: 760; text-decoration: none; }
.category-nav a:hover { color: #fff; border-color: var(--g365-ink); background: var(--g365-ink); }
.section { padding: 1rem 0 4.5rem; }
.section--soft { padding: 4rem 0; background: var(--g365-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; }
.section-heading a { color: var(--g365-accent-dark); font-size: .86rem; font-weight: 800; text-decoration: none; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(2rem, 5vw, 4.5rem); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.3rem; }
.post-card { min-width: 0; }
.post-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: .8rem; border-radius: 3px; background: var(--g365-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.035); }
.post-card h3 { margin: .5rem 0 .6rem; }
.post-card h3 a { text-decoration: none; }
.post-card__meta, .entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; color: var(--g365-muted); font-size: .79rem; }
.post-card__excerpt { margin: .65rem 0 0; color: var(--g365-muted); font-size: .93rem; line-height: 1.55; }
.sidebar-block { margin-bottom: 2.2rem; }
.sidebar-title { margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--g365-ink); font-size: 1.05rem; letter-spacing: -.01em; }
.popular-list { display: grid; gap: 1rem; counter-reset: popular; }
.popular-item { display: grid; grid-template-columns: 38px 1fr; gap: .55rem; align-items: start; counter-increment: popular; }
.popular-item::before { color: var(--g365-accent); content: counter(popular, decimal-leading-zero); font-weight: 900; line-height: 1.25; }
.popular-item a { font-size: .9rem; font-weight: 760; line-height: 1.35; text-decoration: none; }

/* Archives */
.archive-header { padding: clamp(3rem, 7vw, 6rem) 0 2.5rem; border-bottom: 1px solid var(--g365-line); background: var(--g365-soft); }
.archive-header h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.8rem); }
.archive-description { max-width: 700px; margin-top: 1rem; color: var(--g365-muted); }
.archive-main { padding: 3.5rem 0 5rem; }
.archive-list { display: grid; gap: 2rem; }
.list-card { display: grid; grid-template-columns: minmax(210px, 34%) minmax(0, 1fr); gap: 1.4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--g365-line); }
.list-card__media { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--g365-soft); }
.list-card__media img { width: 100%; height: 100%; object-fit: cover; }
.list-card h2 { margin: .5rem 0 .7rem; font-size: clamp(1.3rem, 2.5vw, 2rem); }
.list-card h2 a { text-decoration: none; }
.list-card p { margin: 0; color: var(--g365-muted); }
.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: grid; min-width: 42px; height: 42px; padding: 0 .65rem; place-items: center; border: 1px solid var(--g365-line); border-radius: 9px; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { color: #fff; border-color: var(--g365-ink); background: var(--g365-ink); }

/* Article */
.breadcrumbs { padding-top: 1.2rem; color: var(--g365-muted); font-size: .76rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: .4rem; color: #b0b5bd; content: "/"; }
.breadcrumbs a { text-decoration: none; }
.article-header { max-width: 1020px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; }
.article-header h1 { margin: .45rem 0 1rem; font-size: clamp(2.2rem, 5.6vw, 4.55rem); }
.article-hero { width: min(calc(100% - 40px), 1180px); overflow: hidden; max-height: 680px; margin: 0 auto 3.5rem; border-radius: var(--g365-radius); background: var(--g365-soft); }
.article-hero img { width: 100%; max-height: 680px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 250px; justify-content: center; gap: clamp(2.2rem, 6vw, 5rem); padding-bottom: 5rem; }
.entry-content { min-width: 0; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin-top: 1.7em; scroll-margin-top: 110px; }
.entry-content a { color: var(--g365-accent-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content img, .entry-content .wp-block-image { border-radius: 12px; }
.entry-content .alignwide { width: min(100vw - 40px, 1040px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.article-aside { position: relative; }
.article-aside__inner { position: sticky; top: 120px; }
.share-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-links a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--g365-line); border-radius: 50%; font-size: .75rem; font-weight: 850; text-decoration: none; }
.share-links a:hover { color: #fff; border-color: var(--g365-ink); background: var(--g365-ink); }
.article-tax { margin-top: 1.5rem; color: var(--g365-muted); font-size: .8rem; }
.article-tax a { color: inherit; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; margin-top: 3rem; padding: 1.4rem; border: 1px solid var(--g365-line); border-radius: 14px; }
.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.author-box p { margin: 0; color: var(--g365-muted); font-size: .9rem; }
.related-posts { padding: 4rem 0; border-top: 1px solid var(--g365-line); }
.post-navigation { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--g365-line); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post-navigation a { display: block; padding: 1rem; border: 1px solid var(--g365-line); text-decoration: none; }
.post-navigation span { display: block; margin-bottom: .25rem; color: var(--g365-muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.post-navigation strong { display: block; font-family: var(--g365-headline); font-size: .95rem; line-height: 1.3; }
.sidebar-title--spaced { margin-top: 2.2rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.page-article { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 4rem 0 6rem; }
.page-article__header { margin-bottom: 2rem; }
.no-results { padding: 5rem 0; text-align: center; }

/* About and contact */
.feature-page { padding-bottom: 5rem; }
.feature-hero { padding-top: clamp(3rem, 8vw, 7rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); border-bottom: 4px solid var(--g365-ink); }
.feature-hero h1 { max-width: 980px; margin: .35rem 0 .8rem; font-size: clamp(2.5rem, 6.5vw, 5.8rem); }
.feature-hero p { max-width: 800px; margin: 0; color: var(--g365-muted); font-family: var(--g365-headline); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.feature-hero--contact h1 { max-width: none; }
.feature-page__body { padding-top: 3rem; }
.feature-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); padding-bottom: 4rem; }
.feature-intro p { margin: 0; color: #3f4650; font-size: 1.02rem; }
.feature-intro .feature-dropcap { color: var(--g365-ink); font-family: var(--g365-headline); font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.45; }
.feature-dropcap::first-letter { float: left; margin: .05em .1em 0 0; color: var(--g365-accent); font-family: var(--g365-headline); font-size: 3.6em; font-weight: 800; line-height: .72; }
.values-section { padding: 3rem 0; border-top: 1px solid var(--g365-line); }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--g365-line); border: 1px solid var(--g365-line); }
.value-card { padding: clamp(1.3rem, 3vw, 2.2rem); background: #fff; }
.value-card > strong, .contact-card > span { color: var(--g365-accent); font-size: .72rem; letter-spacing: .08em; }
.value-card h3 { margin: 1.7rem 0 .7rem; font-size: 1.35rem; }
.value-card p { margin: 0; color: var(--g365-muted); font-size: .9rem; }
.editorial-note { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 6rem); margin-top: 3rem; padding: clamp(2rem, 5vw, 4rem); color: #fff; background: var(--g365-ink); }
.editorial-note h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.2rem); }
.editorial-note p { color: #c8cdd4; }
.contact-primary { max-width: 900px; padding-bottom: 3rem; }
.contact-label { display: block; margin-bottom: .45rem; color: var(--g365-muted); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.contact-email { display: inline-block; margin-bottom: 1rem; color: var(--g365-ink); font-family: var(--g365-headline); font-size: clamp(1.7rem, 5vw, 4rem); font-weight: 800; text-decoration-color: var(--g365-accent); }
.contact-primary p { max-width: 720px; color: var(--g365-muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 4px solid var(--g365-ink); border-bottom: 1px solid var(--g365-line); }
.contact-card { padding: 2rem; border-left: 1px solid var(--g365-line); }
.contact-card:first-child { border-left: 0; }
.contact-card h2 { margin: 1.5rem 0 .6rem; font-size: 1.45rem; }
.contact-card p { color: var(--g365-muted); font-size: .9rem; }
.contact-card a { color: var(--g365-accent-dark); font-size: .8rem; font-weight: 850; text-decoration: none; }
.contact-extra { margin-top: 3rem; }

/* Comments */
.comments-area { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--g365-line); }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { margin: 1.3rem 0; padding: 1.25rem; border: 1px solid var(--g365-line); border-radius: 12px; }
.comment-meta { margin-bottom: .8rem; font-size: .82rem; }
.comment-author img { display: inline-block; margin-right: .5rem; border-radius: 50%; vertical-align: middle; }
.comment-form label { display: block; margin-bottom: .25rem; font-size: .82rem; font-weight: 750; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; padding: .8rem; border: 1px solid var(--g365-line); border-radius: 9px; }
.form-submit input { padding: .8rem 1.1rem; border: 0; border-radius: 9px; color: #fff; background: var(--g365-ink); font-weight: 750; }

/* Footer */
.site-footer { color: #d8dbe0; background: #101318; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; }
.site-footer .wordmark { color: #fff; }
.site-footer p { max-width: 420px; color: #9ca3ad; font-size: .9rem; }
.footer-title { margin-bottom: 1rem; color: #fff; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: .45rem; }
.footer-menu a { color: #b9bec6; font-size: .88rem; text-decoration: none; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid #252a31; color: #89909a; font-size: .78rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1rem; }
.footer-legal a { color: #b9bec6; text-decoration: none; }

@media (max-width: 960px) {
  .header-inner { min-height: 78px; grid-template-columns: 1fr auto; }
  .masthead-note { display: none; }
  .menu-toggle { display: block; }
  .primary-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; margin: 0; padding: .75rem 20px 1rem; border-bottom: 1px solid var(--g365-line); background: #fff; box-shadow: 0 12px 25px rgba(18,21,26,.07); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation .g365-container > ul, .primary-navigation .menu { display: block; max-height: min(70vh, 560px); overflow-y: auto; }
  .primary-navigation a { padding: .75rem .2rem; border-right: 0; border-bottom: 1px solid var(--g365-line); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__line { opacity: 0; }
  .menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
  .lead-grid { grid-template-columns: minmax(0, 1.3fr) minmax(250px, .8fr); }
  .lead-story--side { display: block; }
  .lead-story--side .lead-story__media { margin-bottom: .6rem; }
  .newspaper-layout { grid-template-columns: minmax(0, 1fr); }
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .home-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .article-layout { grid-template-columns: minmax(0, 760px); }
  .article-aside__inner { position: static; }
  .article-aside { padding-top: 1.2rem; border-top: 1px solid var(--g365-line); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .g365-container { width: min(calc(100% - 28px), var(--g365-container)); }
  .utility-meta { display: none; }
  .utility-inner { justify-content: flex-end; }
  .utility-nav ul { gap: .7rem; }
  .wordmark { font-size: 1.8rem; }
  .custom-logo { max-height: 48px; }
  .header-inner { min-height: 70px; gap: .45rem; }
  .header-search summary { width: 40px; height: 40px; }
  .breaking-inner { grid-template-columns: auto minmax(0, 1fr); }
  .breaking-list li:not(:first-child) { display: none; }
  .breaking-list a { max-width: none; }
  .newspaper-front { padding-top: 1rem; }
  .lead-grid { display: block; padding-bottom: 1rem; }
  .lead-story--main { padding: 0 0 1rem; border-right: 0; }
  .lead-story h2 { font-size: clamp(1.75rem, 9vw, 2.6rem); }
  .lead-story--side { display: grid; grid-template-columns: 38% 1fr; gap: .8rem; padding: 1rem 0; }
  .lead-story--side .lead-story__media { margin: 0; }
  .lead-story--side .category-pill { display: none; }
  .lead-story--side h3 { margin-top: 0; font-size: 1.05rem; }
  .brief-grid { display: flex; margin-right: -14px; padding-right: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .brief-item { flex: 0 0 82%; padding: 0 .9rem; scroll-snap-align: start; }
  .brief-item:nth-child(2) { border-left: 1px solid var(--g365-line); }
  .front-section { padding: 2rem 0; }
  .news-row { grid-template-columns: 118px minmax(0, 1fr); gap: .8rem; margin-bottom: 1rem; padding-bottom: 1rem; }
  .news-row h3 { margin: .25rem 0 .35rem; font-size: 1.08rem; }
  .news-row p, .news-row .entry-meta span { display: none; }
  .more-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .8rem; }
  .more-news-grid .post-card h3 { font-size: 1rem; }
  .more-news-grid .post-card__excerpt { display: none; }
  .post-grid, .related-grid, .home-sidebar { grid-template-columns: 1fr; }
  .list-card { grid-template-columns: 1fr; }
  .article-header { padding-top: 2.4rem; }
  .article-header h1 { font-size: clamp(2rem, 11vw, 3.3rem); }
  .article-hero { width: calc(100% - 28px); margin-bottom: 2.4rem; border-radius: 13px; }
  .article-layout { padding-bottom: 3.5rem; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .feature-hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .feature-hero h1 { font-size: clamp(2.4rem, 13vw, 4rem); }
  .feature-intro, .editorial-note { grid-template-columns: 1fr; gap: 1.5rem; }
  .values-grid, .contact-grid { grid-template-columns: 1fr; }
  .value-card, .contact-card { border-top: 1px solid var(--g365-line); border-left: 0; }
  .value-card:first-child, .contact-card:first-child { border-top: 0; }
  .contact-email { overflow-wrap: anywhere; }
  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; }
  .footer-legal { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .article-aside, .related-posts, .comments-area, .breadcrumbs { display: none !important; }
  body { color: #000; font-size: 12pt; background: #fff; }
  .article-layout { display: block; }
  a { color: #000; text-decoration: none; }
}
