/*
Theme Name: Top Plastic
Theme URI: https://www.topplastic.com/
Author: Top Plastic Co., Ltd.
Author URI: https://www.topplastic.com/
Description: Custom B2B theme for an engineering plastics manufacturer and stockholder. Product catalogue (sheet / rod / tube) built on custom post types, temperature-class navigation modelled on the MCAM product structure, a six-language front end (English, Chinese, Spanish, Russian, Arabic with RTL, German) that needs no translation plugin, a fifty-article technical library with a studio photo on every card, plus an RFQ enquiry pipeline that stores every enquiry in the dashboard and emails it to sales.
Version: 2.0.21
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: top-plastic
Tags: business, b2b, industrial, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, right-sidebar, block-styles, wide-blocks
*/

/* ---------------------------------------------------------------------------
   1. Design system + layout  (mirrors the static preview build)
   --------------------------------------------------------------------------- */

/* ==========================================================================
   Top Plastic Co., Ltd. — Engineering Plastics Website
   Design System v1.0
   Palette: Deep Sea Blue  #065A82 / #1C7293 / #00A8E8
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --tp-900: #04283A;
  --tp-800: #065A82;
  --tp-700: #1C7293;
  --tp-600: #2A8BB0;
  --tp-500: #00A8E8;
  --tp-300: #7FD4F5;
  --tp-100: #E4F4FB;
  --tp-050: #F2F9FC;

  --ink: #0B1B24;
  --ink-2: #33474F;
  --muted: #64787F;
  --line: #DCE5E9;
  --line-soft: #EDF2F5;
  --bg: #FFFFFF;
  --bg-alt: #F5F8FA;

  --amber: #E8A33D;
  --green: #2E9E6B;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(6, 40, 58, .06), 0 2px 8px rgba(6, 40, 58, .05);
  --shadow: 0 4px 12px rgba(6, 40, 58, .07), 0 12px 32px rgba(6, 40, 58, .07);
  --shadow-lg: 0 12px 28px rgba(6, 40, 58, .10), 0 32px 64px rgba(6, 40, 58, .10);

  --wrap: 1220px;
  --nav-h: 74px;

  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
          "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--tp-800); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--tp-500); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--tp-500); outline-offset: 2px; border-radius: 4px; }

/* RTL support (Arabic) */
[dir="rtl"] { text-align: right; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-left: 0; padding-right: 1.2em; }
[dir="rtl"] .tp-arrow { transform: scaleX(-1); }

/* Skip link — hidden with the clip pattern, never with left:-9999px.
   A negative offset creates ~10,000 px of horizontal overflow, and in an RTL
   document that overflow becomes a scrollable area, pushing the layout
   viewport off screen so the page paints blank. */
.skip {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 10px; inset-inline-start: 10px; width: auto; height: auto;
  margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal;
  z-index: 1000; background: #fff; color: var(--tp-800); font-weight: 700;
  padding: 12px 20px; border-radius: 8px; box-shadow: var(--shadow);
}

/* ---------- 3. Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: linear-gradient(135deg, var(--tp-900) 0%, var(--tp-800) 55%, var(--tp-700) 100%);
  color: #E9F5FA;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #BEDCEC; }

.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- 4. Top bar + Header ---------- */
.topbar {
  background: var(--tp-900);
  color: #9FC6D8;
  font-size: 13px;
  letter-spacing: .01em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar a { color: #CBE5F1; }
.topbar a:hover { color: #fff; }
.topbar__meta { display: flex; gap: 22px; align-items: center; }
.topbar__meta span { display: inline-flex; align-items: center; gap: 7px; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 28px;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--tp-900); }
.brand__tag { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--tp-800); background: var(--tp-050); }
.nav__link .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .55; }

.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 330px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 14px; opacity: 0; visibility: hidden; transition: .2s ease;
}
.nav__item:hover .nav__panel, .nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__panel a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.nav__panel a:hover { background: var(--tp-050); }
.nav__panel a strong { display: block; font-weight: 700; color: var(--ink); font-size: 14px; }
.nav__panel a span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.nav__panel--wide { min-width: 640px; }
.nav__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.nav__group-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 12px 4px; }

/* Language switch */
.lang { display: flex; align-items: center; gap: 2px; }
.lang a {
  padding: 5px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--muted); letter-spacing: .04em;
}
.lang a:hover { background: rgba(255,255,255,.1); color: #fff; }
.lang a.is-active { background: var(--tp-500); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 650; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: .18s ease; text-align: center;
}
.btn--primary { background: var(--tp-800); color: #fff; box-shadow: 0 2px 10px rgba(6,90,130,.24); }
.btn--primary:hover { background: var(--tp-700); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(6,90,130,.28); }
.btn--accent { background: var(--tp-500); color: #fff; }
.btn--accent:hover { background: #0093CC; color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--tp-700); color: var(--tp-800); background: var(--tp-050); }
.btn--light { background: #fff; color: var(--tp-900); }
.btn--light:hover { background: var(--tp-100); color: var(--tp-900); }
.btn--outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14.5px; }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 6. Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tp-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--tp-500); border-radius: 2px; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head p { color: var(--muted); font-size: 16.5px; margin-bottom: 0; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 30px; }
.sec-head--row .sec-head__txt { max-width: 700px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--tp-900) 0%, var(--tp-800) 48%, var(--tp-700) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(0,168,232,.34), transparent 46%),
    radial-gradient(circle at 12% 88%, rgba(127,212,245,.20), transparent 42%);
  pointer-events: none;
}
.hero__grid-bg {
  position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 72%);
}
.hero__inner { position: relative; z-index: 2; padding: 92px 0 88px; }
.hero__body { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--tp-300); }
.hero__lead { font-size: 17.5px; color: #C3E0EE; max-width: 620px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.16); border-radius: var(--radius); overflow: hidden;
  max-width: 760px;
}
.hero__stat { background: rgba(4,40,58,.42); padding: 18px 20px; }
.hero__stat b { display: block; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero__stat span { font-size: 13px; color: #A9CFE0; }

.hero--sub .hero__inner { padding: 62px 0 56px; }
.hero--sub h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #9FC6D8; margin-bottom: 18px; }
.breadcrumb a { color: #CBE5F1; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 8. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; transition: .22s ease; position: relative; overflow: hidden;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--tp-300); }
.card__icon { width: 46px; height: 46px; margin-bottom: 16px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.card__meta { font-size: 13px; color: var(--tp-700); font-weight: 700; }

/* Material tile */
.mat-tile {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; height: 100%; transition: .2s ease;
}
.mat-tile:hover { border-color: var(--tp-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.mat-tile__code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 62px; height: 30px; padding: 0 10px;
  background: var(--tp-100); color: var(--tp-800);
  border-radius: 6px; font-weight: 800; font-size: 13.5px; letter-spacing: .03em; margin-bottom: 13px;
}
.mat-tile h3 { font-size: 16.5px; margin-bottom: 5px; }
.mat-tile p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.mat-tile__specs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 99px;
  background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line-soft);
}
.chip--temp { background: #FDF3E3; color: #9A6416; border-color: #F3DFBF; }
.chip--green { background: #EAF7F0; color: #1F7550; border-color: #CFEBDC; }

/* Temperature bands */
.bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.band {
  display: flex; flex-direction: column; border-radius: var(--radius-lg);
  padding: 26px 22px; color: #fff; min-height: 250px; position: relative; overflow: hidden;
  border: 0;
}
.band::after {
  content: ""; position: absolute; right: -34px; bottom: -34px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255,255,255,.10);
}
.band--1 { background: linear-gradient(160deg, #2A8BB0, #1C7293); }
.band--2 { background: linear-gradient(160deg, #1C7293, #065A82); }
.band--3 { background: linear-gradient(160deg, #065A82, #04283A); }
.band--4 { background: linear-gradient(160deg, #04283A, #0B1B24); }
.band__range { font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.band__temp { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.band h3 { color: #fff; font-size: 18px; margin: 14px 0 8px; }
.band p { font-size: 13.5px; color: rgba(255,255,255,.78); flex: 1; }
.band__mats { font-size: 12.5px; font-weight: 650; color: var(--tp-300); position: relative; z-index: 2; }

/* Industry / feature list */
.feature { display: flex; gap: 16px; }
.feature__ico {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  background: var(--tp-100); color: var(--tp-800);
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- 9. Product filter + table ---------- */
.filterbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.filterbar__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 14.5px; transition: .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--tp-500); box-shadow: 0 0 0 3px rgba(0,168,232,.14); outline: none;
}
.field textarea { min-height: 128px; resize: vertical; }
.field--full { grid-column: 1 / -1; }

.filter-results { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--tp-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard__thumb {
  height: 132px; background: linear-gradient(135deg, var(--tp-050), var(--tp-100));
  display: flex; align-items: center; justify-content: center; position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.pcard__form { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.9); color: var(--tp-800); padding: 3px 9px; border-radius: 99px; }
.pcard__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.pcard__code { font-size: 12px; font-weight: 750; color: var(--tp-700); letter-spacing: .04em; }
.pcard h3 { font-size: 16px; margin: 6px 0 8px; }
.pcard__spec { font-size: 13px; color: var(--muted); margin-bottom: 12px; flex: 1; }
.pcard__spec b { color: var(--ink-2); font-weight: 650; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.pcard__foot .link-arrow { font-size: 13.5px; }

table.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.specs th, table.specs td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.specs thead th {
  background: var(--tp-050); color: var(--tp-900); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 750;
  border-bottom: 2px solid var(--tp-300);
}
table.specs tbody tr:hover { background: var(--tp-050); }
table.specs td:first-child { font-weight: 650; color: var(--ink); }
[dir="rtl"] table.specs th, [dir="rtl"] table.specs td { text-align: right; }

/* ---------- 10. RFQ / forms ---------- */
.rfq { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.rfq__aside {
  background: linear-gradient(160deg, var(--tp-900), var(--tp-700));
  color: #fff; padding: 44px 40px;
}
.rfq__aside h2 { color: #fff; font-size: 1.65rem; }
.rfq__aside p { color: #BEDCEC; }
.rfq__list { list-style: none; padding: 0; margin: 26px 0 0; }
.rfq__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: #D5E9F3; margin-bottom: 14px; }
.rfq__list li::before { content: "✓"; color: var(--tp-500); font-weight: 800; flex: none; }
.rfq__form { background: #fff; padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.form-alert {
  padding: 13px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px;
  background: #EAF7F0; border: 1px solid #CFEBDC; color: #1F7550;
}
.form-alert--err { background: #FDEDED; border-color: #F5CFCF; color: #A83232; }

/* ---------- 11. FAQ / accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 0; font-weight: 650; font-size: 16.5px;
  display: flex; justify-content: space-between; gap: 20px; align-items: center; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--tp-700); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 15px; padding-bottom: 4px; margin-top: -6px; }

/* ---------- 12. News ---------- */
.post-list { display: grid; gap: 26px; }
.post-item { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-item__thumb { height: 150px; border-radius: var(--radius); background: linear-gradient(135deg, var(--tp-100), var(--tp-300)); display: flex; align-items: center; justify-content: center; }
.post-item__date { font-size: 12.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; font-weight: 650; }
.post-item h3 { font-size: 19px; margin: 7px 0 9px; }
.post-item p { color: var(--muted); font-size: 14.5px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--tp-100); color: var(--tp-800); margin-right: 6px; }

/* ---------- 13. CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--tp-800), var(--tp-500));
  border-radius: var(--radius-lg); padding: 46px 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,.86); margin: 0; max-width: 620px; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--tp-900); color: #9FC6D8; padding: 62px 0 0; font-size: 14px; }
.site-footer h4 { color: #fff; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #9FC6D8; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #7FA8BC; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: #7FA8BC;
}
.footer-cert { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-cert span { border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 4px 10px; font-size: 11.5px; letter-spacing: .05em; }

/* Floating WhatsApp */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-cta a {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--tp-800); color: #fff; box-shadow: var(--shadow); transition: .2s;
}
.float-cta a:hover { background: var(--tp-500); color: #fff; transform: scale(1.06); }
[dir="rtl"] .float-cta { right: auto; left: 22px; align-items: flex-start; }

/* ---------- 15. Utility ---------- */
.tc { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 18px; }
.mb-3 { margin-bottom: 30px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split--rev .split__media { order: -1; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stat b { display: block; font-size: 34px; font-weight: 800; color: var(--tp-800); letter-spacing: -.03em; line-height: 1.15; }
.stat span { font-size: 13.5px; color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
  .g-4, .bands { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rfq { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav.is-open { max-height: 640px; overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 0; }
  .nav__panel {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; min-width: 0; padding: 4px 0 8px 12px; margin-left: 12px;
  }
  .nav__panel--wide { min-width: 0; }
  .nav__cols { grid-template-columns: 1fr; }
  .nav-toggle { display: block; margin-left: auto; }
  .g-3, .g-2, .split, .filterbar__row, .form-grid, .stat-row { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .post-item { grid-template-columns: 1fr; }
  .post-item__thumb { height: 180px; }
  .section { padding: 60px 0; }
  .rfq__aside, .rfq__form { padding: 30px 24px; }
  .cta-strip { padding: 34px 26px; }
  .topbar__meta span:nth-child(n+2) { display: none; }
}
@media (max-width: 620px) {
  .g-4, .bands, .hero__stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 60px 0 56px; }
  h1 { font-size: 1.9rem; }
}
@media print {
  .site-header, .topbar, .float-cta, .cta-strip { display: none; }
}

/* Product studio renders (1000x1000 set, one per product) */
.pcard__thumb--photo { height: 216px; background: #fff; }
.pcard__thumb--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg-main {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
}

/* ---------- 22. Photography set v2: hero, industries, news, about, contact ---------- */
@media (min-width: 980px) {
  .hero--home .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 56px; align-items: center; }
  .hero--home .hero__body { max-width: none; }
}
.hero__media-card { background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 26px 60px rgba(2, 24, 36, .38); }
.hero__media-card img { width: 100%; height: auto; display: block; border-radius: 12px; }

.ind-thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--tp-100); margin-bottom: 16px; }
.ind-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.ncard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--tp-300); }
.ncard__thumb { aspect-ratio: 1 / 1; background: var(--tp-100); overflow: hidden; }
.ncard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ncard__body h3 { font-size: 17.5px; line-height: 1.35; margin: 0; }
.ncard__body p { margin: 0; color: var(--muted); font-size: 14px; }
.ncard__body .link-arrow { margin-top: auto; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager__link { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.pager__link:hover { border-color: var(--tp-300); color: var(--tp-700); }
.pager__link.is-current { background: var(--tp-800); border-color: var(--tp-800); color: #fff; }
.pager__link--dots { border-color: transparent; background: transparent; color: var(--muted); pointer-events: none; }

.article-cover { margin: 0 0 26px; }
.article-cover img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 16px; background: #fff; }

.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-stack img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 14px; border: 1px solid var(--line); background: #fff; }

.wide-photo { margin: 0 0 34px; }
.wide-photo img { width: 100%; max-height: 420px; object-fit: cover; display: block; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .news-grid { grid-template-columns: 1fr; }
  .hero__media-card { margin-top: 34px; }
}


/* ---------------------------------------------------------------------------
   17. WordPress core compatibility
   --------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: var(--tp-800);
  display: block; font-size: 14px; font-weight: 700; height: auto; left: 8px; line-height: normal;
  padding: 14px 22px; text-decoration: none; top: 8px; width: auto; z-index: 100000;
  box-shadow: var(--shadow); border-radius: 8px;
}
.skip-link {
  /* Never use left:-9999px here: in an RTL document a negative offset creates
     ~10,000 px of scrollable overflow and the page paints blank. The clip
     pattern below hides it without touching the box position. */
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 10px; inset-inline-start: 10px; width: auto; height: auto;
  margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal;
  z-index: 100000; background: #fff; color: var(--tp-800); font-weight: 700;
  padding: 12px 20px; border-radius: 8px; box-shadow: var(--shadow);
}
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.alignleft { float: left; margin: 0 26px 18px 0; }
.alignright { float: right; margin: 0 0 18px 26px; }
.aligncenter { display: block; margin: 0 auto 18px; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption, figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.sticky .pcard__code::after { content: " · pinned"; color: var(--tp-500); }
.bypostauthor > .comment-body .comment-author { font-weight: 700; }

/* WP block defaults kept readable inside our prose column */
.entry-content > * { margin-bottom: 1.1em; }
.entry-content h2 { margin-top: 1.8em; font-size: 1.55rem; }
.entry-content h3 { margin-top: 1.5em; font-size: 1.2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote {
  margin: 26px 0; padding: 20px 26px; border-left: 3px solid var(--tp-500);
  background: var(--tp-050); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 15px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--tp-050); font-weight: 700; }
.entry-content img, .entry-content iframe { max-width: 100%; height: auto; border-radius: var(--radius); }
.wp-block-button__link { border-radius: 8px; background: var(--tp-800); font-weight: 650; }

/* ---------------------------------------------------------------------------
   Content-mode pages: the editor's blocks, laid out by the design system.

   A page whose body lives in the editor (About today; any page that is
   switched over later) hands the design system's own class names to Gutenberg:
   <section class="wp-block-group section">, <div class="wp-block-group card">,
   and so on. The theme strips the block engine's pass-through wrapper
   (wp-block-group__inner-container) on the server, so the DOM matches the
   design element for element; the rules below are the fallback for any group
   that reaches the browser with its wrapper intact.

   1. display:contents takes the wrapper out of the box tree without touching
      the DOM — every grid in the design system (.grid, .split, .photo-stack)
      puts children on the grid with a direct-child selector.
   2. Core's layout rules add a block gap (24px) between the children of a
      flow-layout group. The design already spaces its own elements, so the
      gap is turned off rather than doubled up.
   --------------------------------------------------------------------------- */
.tp-page-content .wp-block-group__inner-container { display: contents; }
.tp-page-content .is-layout-flow > * + * { margin-block-start: 0; }

/* The design writes these two declarations inline on the stats grid; a block
   cannot carry an inline style without the editor turning it into a custom-CSS
   field, so they live here as classes. Scoped and sorted after the reset above
   so the reset cannot flatten the margin again. */
.tp-page-content .tp-gap-20 { gap: 20px; }
.tp-page-content .tp-mt-30 { margin-top: 30px; }

/* Labels that the editor renders as paragraphs but the design styles as
   inline tags. Two descendant selectors (.sec-head p, .card p) would re-style
   them as body prose — each re-asserts its own look at higher specificity. */
.tp-page-content .sec-head .eyebrow {
  font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tp-700); margin-bottom: 14px;
}
/*
 * Paragraph pills only. The About cert cards turn their
 * <div class="mat-tile__code" style="min-width:0"> into a paragraph block,
 * and without this reset `.card p` would restyle them (14.5px, muted, 14px).
 * Scoped to p on purpose: the Materials page's pills are spans inside
 * core/html atoms and MUST keep the design's min-width:62px — an unscoped
 * selector here shrank every tile badge and shifted the grid by pixels.
 */
.tp-page-content p.mat-tile__code {
  min-width: 0; font-size: 13.5px; color: var(--tp-800); margin-bottom: 13px;
}

/* Belt and braces for the platform's post-content add-ons. The theme unhooks
   them on the server (tp_drop_platform_content_appends()) so they never reach
   the page at all; this keeps a page honest if a host hands them back anyway
   or a future plan enables a module the filter list does not know yet. */
.tp-page-content .sharedaddy,
.tp-page-content .jp-relatedposts,
.tp-page-content .wpl-likebox,
.tp-page-content .post-navigation { display: none !important; }

/* Pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 46px 0 0; }
.pagination .page-numbers, .nav-links .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; font-weight: 650; font-size: 14.5px; color: var(--ink-2); background: #fff;
}
.pagination .page-numbers:hover, .nav-links .page-numbers:hover { border-color: var(--tp-500); color: var(--tp-800); }
.pagination .page-numbers.current { background: var(--tp-800); border-color: var(--tp-800); color: #fff; }

/* Comments */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 34px; }
.comment-list .children { list-style: none; padding-left: 34px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-form label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.comment-form p { margin-bottom: 16px; }
.comment-form .submit { padding: 13px 26px; border: 0; border-radius: 8px; background: var(--tp-800); color: #fff; font-weight: 650; cursor: pointer; }

/* ---------------------------------------------------------------------------
   18. Theme-specific blocks
   --------------------------------------------------------------------------- */
/* Language strip in the admin bar area */
.lang a.is-active { background: var(--tp-500); color: #fff; }

/* Masonry-free product grid keeps equal heights */
.pgrid { align-items: stretch; }

/* Sticky spec card used on single product */
.tp-sticky { position: sticky; top: calc(var(--nav-h) + 26px); }

/* Inquiry status pills in the dashboard */
.tp-status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.tp-status--new { background: #E4F4FB; color: #065A82; }
.tp-status--quoted { background: #EAF7F0; color: #1F7550; }
.tp-status--won { background: #065A82; color: #fff; }
.tp-status--lost { background: #F1F3F4; color: #64787F; }

/* Admin list table tweaks */
.post-type-tp_inquiry .column-tp_contact { width: 26%; }
.post-type-tp_inquiry .column-tp_requirement { width: 42%; }

/* WooCommerce is not required, but if a site adds it the buttons inherit our palette */
.woocommerce a.button, .woocommerce button.button { background: var(--tp-800); color: #fff; border-radius: 8px; }

/* RTL refinements beyond the base [dir="rtl"] rules */
[dir="rtl"] .nav__panel { left: auto; right: 50%; transform: translateX(50%) translateY(6px); }
[dir="rtl"] .nav__item:hover .nav__panel, [dir="rtl"] .nav__item:focus-within .nav__panel { transform: translateX(50%) translateY(0); }
[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .entry-content blockquote { border-left: 0; border-right: 3px solid var(--tp-500); border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .tp-sticky { position: static; }

@media (max-width: 900px) {
  [dir="rtl"] .nav__panel { transform: none; right: auto; left: auto; }
  .alignwide { margin-left: -24px; margin-right: -24px; max-width: calc(100% + 48px); }
}
@media print {
  .admin-bar .site-header { top: 0; }
}

/* ---------------------------------------------------------------------------
   19. Sidebar layout, widgets and the search form
   --------------------------------------------------------------------------- */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.sidebar { display: grid; gap: 24px; align-content: start; }
.widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 24px 26px;
}
.widget__title {
  font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--tp-800); margin-bottom: 14px;
}
.widget__list { list-style: none; padding: 0; margin: 0; }
.widget__list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px;
}
.widget__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget__count { font-size: 12.5px; color: var(--muted); font-weight: 650; flex: none; }
.widget__meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.widget__list--posts li { display: block; }
.widget--cta {
  background: linear-gradient(160deg, var(--tp-800), var(--tp-700));
  border-color: transparent; color: #fff;
}
.widget--cta .widget__title { color: #fff; }
.widget--cta p { color: #CFE8F4; }
.widget--cta .btn { margin-top: 6px; }

/* Search form */
.search-form__row { display: flex; gap: 10px; }
.search-form__input {
  flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 14.5px;
}
.search-form__input:focus { outline: 0; border-color: var(--tp-500); box-shadow: 0 0 0 3px rgba(0, 168, 232, .16); }
.search-form .btn { flex: none; }

@media (max-width: 980px) {
  .layout-sidebar { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .search-form__row { flex-wrap: wrap; }
  .search-form__row .btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   20. Filter bar as a form + AJAX refresh states
   --------------------------------------------------------------------------- */
.filterbar__row > noscript { display: contents; }
.field--action { align-self: end; }
.field--action .btn { width: 100%; }

/* AJAX refresh: fade the grid rather than flashing an empty box. */
.pgrid.is-loading { opacity: .45; transition: opacity .15s ease; pointer-events: none; }
.filter-results.is-loading { opacity: .45; }
.pgrid.is-refreshed { animation: tp-fade-in .22s ease both; }
@keyframes tp-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pgrid.is-refreshed { animation: none; }
  .pgrid.is-loading { transition: none; }
}

/* ---------------------------------------------------------------------------
   21. Product studio renders (1000x1000 set, one per product)
   --------------------------------------------------------------------------- */
.pcard__thumb--photo { height: 216px; background: #fff; }
.pcard__thumb--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg-main {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
[dir="rtl"] .pcard__thumb--photo img { transform: none; }

/* ---------------------------------------------------------------------------
   22. Photography set v2: hero, industries, news, about, contact
   --------------------------------------------------------------------------- */
@media (min-width: 980px) {
  .hero--home .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 56px; align-items: center; }
  .hero--home .hero__body { max-width: none; }
}
.hero__media-card { background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 26px 60px rgba(2, 24, 36, .38); }
.hero__media-card img { width: 100%; height: auto; display: block; border-radius: 12px; }

.ind-thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--tp-100); margin-bottom: 16px; }
.ind-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.ncard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--tp-300); }
.ncard__thumb { aspect-ratio: 1 / 1; background: var(--tp-100); overflow: hidden; }
.ncard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ncard__body h3 { font-size: 17.5px; line-height: 1.35; margin: 0; }
.ncard__body p { margin: 0; color: var(--muted); font-size: 14px; }
.ncard__body .link-arrow { margin-top: auto; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager__link { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.pager__link:hover { border-color: var(--tp-300); color: var(--tp-700); }
.pager__link.is-current { background: var(--tp-800); border-color: var(--tp-800); color: #fff; }
.pager__link--dots { border-color: transparent; background: transparent; color: var(--muted); pointer-events: none; }

.article-cover { margin: 0 0 26px; }
.article-cover img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 16px; background: #fff; }

.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-stack img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 14px; border: 1px solid var(--line); background: #fff; }

.wide-photo { margin: 0 0 34px; }
.wide-photo img { width: 100%; max-height: 420px; object-fit: cover; display: block; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .news-grid { grid-template-columns: 1fr; }
  .hero__media-card { margin-top: 34px; }
}
