/*
Theme Name: Resin Code
Theme URI: https://theplasticprojects.org/
Author: Rotary Club of Newport Beach
Description: Custom theme for The Plastic Projects. Keeps the Solutions Database, daily update, shortcodes and page templates of the original Plastic Projects theme (loaded from assets/base.css) and adds a new shell and visual design built around resin identification codes.
Version: 1.0
Requires at least: 6.2
Requires PHP: 7.4
Update URI: false
License: GNU General Public License v2 or later
Text Domain: resincode
*/

/* ---------- Tokens (override the base theme) ---------- */
:root {
  --paper: #F3F1F7;
  --paper-2: #E7E3F0;
  --card: #FFFFFF;
  --ink: #1D1733;
  --ink-2: #554E6C;
  --line: #D3CCE1;
  --accent: #A3136F;
  --on-ink: #F3F1F7;
  --flake-pet: #13837F;
  --flake-hdpe: #C98A00;
  --flake-pp: #A3136F;
  --flake-ldpe: #4460C8;
  --flake-clear: #CFC8E0;
  --ok: #1F7A4D;
  --resin: #F5B700;
  --night: #1D1733;
  --night-2: #2B2250;
  --display: "Overpass", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Petrona", Georgia, "Times New Roman", serif;
  --mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
  --wrap: 1240px;
  --hdr: 4.4rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #120E20;
    --paper-2: #1B1630;
    --card: #19142C;
    --ink: #ECE8F6;
    --ink-2: #B3ABC9;
    --line: #342C4F;
    --accent: #F07AC0;
    --on-ink: #120E20;
    --flake-pet: #3FC2BC;
    --flake-hdpe: #F5B700;
    --flake-pp: #F07AC0;
    --flake-ldpe: #8FA4F2;
    --flake-clear: #3A3258;
    --ok: #4DB37F;
    --night: #0C0917;
    --night-2: #231B42;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #120E20; --paper-2: #1B1630; --card: #19142C; --ink: #ECE8F6; --ink-2: #B3ABC9;
  --line: #342C4F; --accent: #F07AC0; --on-ink: #120E20; --flake-pet: #3FC2BC; --flake-hdpe: #F5B700;
  --flake-pp: #F07AC0; --flake-ldpe: #8FA4F2; --flake-clear: #3A3258; --ok: #4DB37F; --night: #0C0917; --night-2: #231B42;
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { background: var(--paper); scroll-padding-top: calc(var(--hdr) + 1rem); }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.1rem; line-height: 1.68; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 900; }
h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.01em; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--resin); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--resin); color: #1D1733; }
.tpp-skip { border-radius: 0 0 var(--radius) 0; font-family: var(--display); font-weight: 700; }
.tpp-main { display: block; min-height: 50vh; }

/* ---------- Header ---------- */
.rc-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .rc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rc-header { top: 0; } }
.rc-header__bar { display: flex; align-items: center; gap: 1rem; min-height: var(--hdr); }
.rc-header__sort { display: grid; grid-template-columns: repeat(7, 1fr); height: 4px; }
.rc-header__sort span:nth-child(1) { background: var(--flake-pet); }
.rc-header__sort span:nth-child(2) { background: var(--resin); }
.rc-header__sort span:nth-child(3) { background: var(--flake-pp); }
.rc-header__sort span:nth-child(4) { background: var(--flake-ldpe); }
.rc-header__sort span:nth-child(5) { background: #E4572E; }
.rc-header__sort span:nth-child(6) { background: #7B5CC8; }
.rc-header__sort span:nth-child(7) { background: var(--ink-2); }

.rc-brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; padding-right: 0.75rem; }
.rc-brand__mark { width: 2.5rem; height: 2.5rem; flex: none; }
.rc-brand__tile { fill: var(--night); }
.rc-brand__arrow { fill: none; stroke: var(--resin); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rc-brand__num { font-family: var(--display); font-weight: 900; font-size: 13px; fill: #F3F1F7; }
.rc-brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.rc-brand__name { font-family: var(--display); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.rc-brand__tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-top: 0.2rem; }

.rc-nav { display: flex; align-items: center; gap: 0.75rem; }
.rc-nav__list { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.rc-nav__item { position: relative; margin: 0; }
.rc-nav a {
  display: block; padding: 0.45rem 0.6rem; border-radius: 999px;
  font-family: var(--display); font-size: 0.92rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.rc-nav a:hover { background: var(--paper-2); }
.rc-nav__item.is-current > a, .rc-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.rc-nav__item--parent > a::after { content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; margin-left: 0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2rem) rotate(45deg); }
.rc-nav__sub {
  position: absolute; left: 0; top: 100%; min-width: 16rem; list-style: none; margin: 0.35rem 0 0; padding: 0.45rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(29, 23, 51, 0.18); display: none; z-index: 5;
}
.rc-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.45rem; height: 0.45rem; }
.rc-nav__item--parent:hover > .rc-nav__sub, .rc-nav__item--parent:focus-within > .rc-nav__sub { display: block; }
.rc-nav__sub a { border-radius: 6px; white-space: normal; font-weight: 600; }
.rc-nav__sub a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.rc-nav__search input {
  font: 600 0.88rem var(--display); width: 9rem; padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
}
.rc-nav__search input:focus { border-color: var(--ink); }
.rc-cta {
  flex: none; font-family: var(--display); font-weight: 800; font-size: 0.9rem; text-decoration: none;
  padding: 0.6rem 1.05rem; border-radius: 999px; background: var(--resin); color: #1D1733; white-space: nowrap;
}
.rc-cta:hover { background: var(--ink); color: var(--paper); }
.rc-toggle { display: none; }

@media (max-width: 1500px) and (min-width: 1101px) { .rc-nav__search { display: none; } }
@media (max-width: 1260px) and (min-width: 1101px) {
  .rc-nav a { font-size: 0.85rem; padding: 0.4rem 0.45rem; }
  .rc-brand__tag { display: none; }
}
@media (max-width: 1100px) {
  .rc-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; order: 3;
    font: 800 0.9rem var(--display); padding: 0.55rem 0.95rem; border-radius: 999px;
    border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  }
  .rc-toggle__bars, .rc-toggle__bars::before, .rc-toggle__bars::after { display: block; width: 1rem; height: 2px; background: currentColor; position: relative; content: ""; }
  .rc-toggle__bars::before { position: absolute; top: -5px; }
  .rc-toggle__bars::after { position: absolute; top: 5px; }
  .rc-toggle[aria-expanded="true"] .rc-toggle__bars { background: transparent; }
  .rc-toggle[aria-expanded="true"] .rc-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .rc-toggle[aria-expanded="true"] .rc-toggle__bars::after { top: 0; transform: rotate(-45deg); }
  .rc-cta { order: 2; }
  .rc-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0.75rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem; max-height: calc(100vh - var(--hdr) - 1rem); overflow-y: auto;
    box-shadow: 0 24px 40px rgba(29, 23, 51, 0.18);
  }
  .rc-nav.is-open { display: flex; }
  .rc-nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .rc-nav a { font-size: 1.05rem; padding: 0.6rem 0.8rem; white-space: normal; }
  .rc-nav__item--parent > a::after { display: none; }
  .rc-nav__sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 1rem; margin: 0; background: transparent; min-width: 0; border-left: 2px solid var(--line); margin-left: 0.8rem; }
  .rc-nav__sub a { font-size: 0.98rem; }
  .rc-nav__search input { width: 100%; font-size: 1rem; padding: 0.7rem 1rem; }
}
@media (max-width: 560px) {
  .rc-header__bar { gap: 0.5rem; }
  .rc-cta { display: none; }
  .rc-brand__name { font-size: 1.02rem; }
  .rc-brand__mark { width: 2.2rem; height: 2.2rem; }
}
@media (max-width: 360px) { .rc-brand__tag { display: none; } }

/* ---------- Buttons and labels ---------- */
.tpp-btn {
  font-family: var(--display); font-weight: 800; font-size: 0.92rem; letter-spacing: 0.005em;
  border-radius: 999px; border-width: 2px; padding: 0.62rem 1.15rem;
}
.tpp-btn--glow { background: var(--resin); border-color: var(--resin); color: #1D1733; }
.tpp-btn--glow:hover { background: #FFFFFF; border-color: #FFFFFF; color: #1D1733; }
.tpp-link-out { font-family: var(--display); font-weight: 700; }
.tpp-link-out::after { content: " \2197"; }
.tpp-globe__label, .tpp-callout__label, .tpp-loopway-banner__label, .tpp-duo__badge, .tpp-newsnote__label,
.tpp-crumb, .tpp-kind, .tpp-project__meta, .tpp-facts dt, .tpp-entry__terms p, .tpp-db__count, .tpp-feed__meta,
.tpp-approach-list__count, .tpp-row__detail, .tpp-person__role, .tpp-table thead th {
  font-family: var(--mono); letter-spacing: 0.04em;
}
.tpp-globe__label, .tpp-callout__label, .tpp-loopway-banner__label, .tpp-newsnote__label, .tpp-crumb, .tpp-facts dt, .tpp-entry__terms p, .tpp-table thead th {
  text-transform: uppercase; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
}
.tpp-status { font-family: var(--mono); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tpp-tag { font-family: var(--display); font-weight: 700; font-size: 0.78rem; background: var(--paper-2); }
.tpp-note { font-family: var(--display); }

/* ---------- Page head band with resin code watermark ---------- */
.tpp-page__head {
  position: relative; overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.tpp-page__head::after {
  content: ""; position: absolute; right: -2rem; bottom: -2.5rem; width: min(22rem, 45vw); aspect-ratio: 1; opacity: 0.18; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23A3136F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22.6 7.9L33.4 26.6M29.7 24.6L33.4 26.6L33.5 22.4M30.9 31.0L9.1 31.0M12.7 28.8L9.1 31.0L12.7 33.2M6.6 26.6L17.4 7.9M17.5 12.1L17.4 7.9L13.7 9.9'/%3E%3C/g%3E%3C/svg%3E");
}
.tpp-page__head .tpp-wrap { position: relative; z-index: 1; }
.tpp-page__title { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.035em; line-height: 1; max-width: 20ch; }
.tpp-lead { color: var(--ink-2); }
.tpp-crumb a { color: var(--accent); text-decoration: none; }
.tpp-crumb a:hover { text-decoration: underline; }
.tpp-kind { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; }

/* ---------- Prose and blocks ---------- */
.tpp-prose { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.tpp-prose > h2 { position: relative; padding-top: 0.9rem; }
.tpp-prose > h2::before { content: ""; position: absolute; left: 0; top: 0; width: 2.2rem; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--flake-pet) 0 33%, var(--resin) 33% 66%, var(--flake-pp) 66%); }
.tpp-prose blockquote, .wp-block-quote { border-left: 4px solid var(--resin); margin: 1.5rem 0; padding: 0.4rem 0 0.4rem 1.25rem; font-style: italic; }
.tpp-prose table:not(.tpp-table) { border-collapse: collapse; width: 100%; }
.tpp-prose table:not(.tpp-table) td, .tpp-prose table:not(.tpp-table) th { border-bottom: 1px solid var(--line); padding: 0.6rem 0.8rem 0.6rem 0; text-align: left; }
.wp-block-image img, .tpp-prose img { border-radius: var(--radius); }
.wp-block-image figcaption, .wp-element-caption { font-family: var(--display); font-size: 0.85rem; color: var(--ink-2); }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-bottom: 1.5rem; }
.wp-block-column { flex: 1 1 16rem; min-width: 0; }
.wp-block-button__link, .wp-element-button { display: inline-block; font-family: var(--display); font-weight: 800; border-radius: 999px; padding: 0.65rem 1.2rem; background: var(--ink); color: var(--paper); text-decoration: none; }
.wp-block-button__link:hover { background: var(--accent); color: #FFFFFF; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { max-width: none; margin-inline: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; display: block; }
.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1rem 0; } }
.tpp-prose iframe, .tpp-prose video { max-width: 100%; }

/* ---------- Cards, callouts, lists ---------- */
.tpp-callout { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--flake-pp); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.tpp-callout--viewpoint { border-left-color: var(--flake-ldpe); }
.tpp-callout--advisor { border-left-color: var(--flake-pet); }
.tpp-callout--news { border-left-color: var(--resin); }
.tpp-callout--loopway { border-left-color: var(--ok); }
.tpp-callout--news .tpp-callout__label, .tpp-newsnote__label { color: #8A5E00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tpp-callout--news .tpp-callout__label, :root:not([data-theme="light"]) .tpp-newsnote__label { color: var(--resin); } }
.tpp-partner--lead { border-radius: 14px; background: var(--night); color: #F3F1F7; }
.tpp-partner--lead a, .tpp-partner--lead .tpp-partner__title a, .tpp-partner--lead .tpp-partner__people, .tpp-partner--lead .tpp-partner__summary { color: #F3F1F7; }
.tpp-partner--lead .tpp-btn { border-color: #F3F1F7; color: #F3F1F7; }
.tpp-partner--lead .tpp-btn:hover { background: var(--resin); border-color: var(--resin); color: #1D1733; }
.tpp-partner--lead .tpp-partner__badge { color: var(--resin); }
.tpp-newsnote { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--resin); border-radius: var(--radius); }
.tpp-row { padding-left: 1.4rem; }
.tpp-row::before { width: 6px; border-radius: 3px; }
.tpp-row__title { font-family: var(--display); font-weight: 800; }
.tpp-db__filters { border-radius: var(--radius); top: calc(var(--hdr) + 0.75rem); box-shadow: 0 10px 30px rgba(29, 23, 51, 0.08); }
.admin-bar .tpp-db__filters { top: calc(var(--hdr) + 32px + 0.75rem); }
.tpp-field input[type="search"], .tpp-field select { border-radius: 8px; border-color: var(--line); background: var(--paper); font-family: var(--display); }
.tpp-field input[type="search"]:focus, .tpp-field select:focus { border-color: var(--ink); }
.tpp-db__empty { border-radius: var(--radius); }
.tpp-entry__side { top: calc(var(--hdr) + 1.5rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; }
.tpp-facts { border-top-width: 3px; }
.tpp-person { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--flake-pet); border-radius: var(--radius); padding: 1rem 1.2rem 0.4rem; }
.tpp-project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 0.6rem; }
.tpp-projects { gap: 1rem; }
.tpp-grant-list li { padding-left: 1.4rem; position: relative; }
.tpp-grant-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.6rem; height: 0.55rem; background: var(--flake-pet); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tpp-siblings { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.tpp-siblings a { border-radius: 999px; font-family: var(--display); font-weight: 700; }
.tpp-siblings a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tpp-portrait img, .tpp-page-photo img, .tpp-page-graphic img, .tpp-panama__media img, .tpp-together__photo img { border-radius: var(--radius); }
.tpp-video__frame { border-radius: var(--radius); }
.pagination .page-numbers { border-radius: 999px; font-family: var(--display); font-weight: 700; }

/* ---------- Home: map hero ---------- */
.tpp-globe {
  --sea: #1D1733; --sea-2: #3A2A6E; --foam: #F3F1F7; --foam-2: #C4BCDB; --glow: #F5B700;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(163, 19, 111, 0.35) 0%, transparent 60%),
    radial-gradient(120% 90% at 10% 20%, var(--sea-2) 0%, var(--sea) 62%);
}
.tpp-globe__title { font-weight: 900; letter-spacing: -0.035em; }
.tpp-mapwrap__stage { border-radius: 14px; background: rgba(12, 9, 23, 0.55); border-color: rgba(243, 241, 247, 0.14); }
.tpp-worldmap__land { stroke: rgba(196, 188, 219, 0.5); }
.tpp-worldmap__grid path { stroke: rgba(243, 241, 247, 0.07); }
.tpp-pin__dot { stroke: #1D1733; }
.tpp-mapinfo { background: rgba(29, 23, 51, 0.94); border-top-color: rgba(243, 241, 247, 0.15); }
.tpp-mapinfo > p:not(.tpp-mapinfo__links) { grid-column: 1; }
.tpp-mapinfo__link { background: var(--resin); color: #1D1733; }
.tpp-chip { font-family: var(--display); font-weight: 700; background: rgba(243, 241, 247, 0.06); border-color: rgba(243, 241, 247, 0.28); }
.tpp-chip[aria-pressed="true"] { background: var(--resin); border-color: var(--resin); color: #1D1733; }
.tpp-globe .tpp-hero__search input { border-radius: 999px; border: 2px solid var(--foam); padding-inline: 1.2rem; background: #FFFFFF; color: #1D1733; font-family: var(--display); }
.tpp-hero__search-row { gap: 0.6rem; }
.tpp-key__item a::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tpp-duo__card { border-radius: 14px; background: rgba(243, 241, 247, 0.05); border-color: rgba(243, 241, 247, 0.14); }
.tpp-duo__badge { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; }
.tpp-duo__title { font-weight: 900; letter-spacing: -0.03em; }
.tpp-duo__credit { font-family: var(--mono); border-radius: 999px; }
.tpp-together h2 { font-weight: 900; }
.tpp-globe .tpp-flakes { opacity: 0.9; }

/* ---------- Home: numbered resin code section heads ---------- */
.home .tpp-main { counter-reset: rc; }
.tpp-section__head { position: relative; }
.home .tpp-section__head { padding-left: 3.6rem; }
.home .tpp-section__head::before {
  counter-increment: rc; content: counter(rc);
  position: absolute; left: 0; top: -0.2rem; width: 2.8rem; height: 2.55rem;
  display: grid; place-items: center; padding-top: 0.55rem;
  font: 900 0.95rem/1 var(--display); color: var(--ink);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Cg fill='none' stroke='%23A3136F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22.6 7.9L33.4 26.6M29.7 24.6L33.4 26.6L33.5 22.4M30.9 31.0L9.1 31.0M12.7 28.8L9.1 31.0L12.7 33.2M6.6 26.6L17.4 7.9M17.5 12.1L17.4 7.9L13.7 9.9'/%3E%3C/g%3E%3C/svg%3E");
}
.tpp-section__head h2 { font-weight: 900; }
.tpp-section + .tpp-section { border-top: 0; }
.tpp-featured { background: var(--paper); }
.tpp-partner:not(.tpp-partner--lead) { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.tpp-partners--row { gap: 1rem; }
.tpp-partners--row .tpp-partner { border-top: 5px solid var(--flake-pet); }
.tpp-partners--row .tpp-partner:nth-child(3n+2) { border-top-color: var(--resin); }
.tpp-partners--row .tpp-partner:nth-child(3n) { border-top-color: var(--flake-pp); }
.tpp-spotlight { background: var(--paper-2); }
.tpp-spotlight__label { font-family: var(--display); font-weight: 900; letter-spacing: -0.03em; color: var(--accent); }
.tpp-spotlight--project .tpp-spotlight__label { color: var(--flake-ldpe); }
.tpp-spotlight h2 { font-weight: 900; letter-spacing: -0.03em; }
.tpp-panama { background: var(--card); }
.tpp-panama__label { color: var(--flake-ldpe); }
.tpp-panama__facts { border-top: 3px solid var(--ink); }
.tpp-policy-mini li { border-left-width: 5px; border-radius: 0 var(--radius) var(--radius) 0; }
.tpp-approach-list { gap: 0.85rem; }
.tpp-approach-list li { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 1rem 1.2rem 0.4rem; }
.tpp-approach-list__name { font-weight: 900; }
.tpp-rotary { background: var(--night); color: #F3F1F7; }
.tpp-rotary h2, .tpp-rotary__list a { color: #F3F1F7; }
.tpp-rotary .tpp-btn--light { border-color: #F3F1F7; color: #F3F1F7; }
.tpp-rotary .tpp-btn--light:hover { background: var(--resin); border-color: var(--resin); color: #1D1733; }
.tpp-rotary__list li { border-top-color: rgba(243, 241, 247, 0.22) !important; }
.tpp-loopway-banner { border-top: 4px solid var(--resin); }

/* ---------- Footer ---------- */
.rc-footer { background: var(--night); color: #E6E1F2; margin-top: 0; padding-top: 1.5rem; }
.rc-footer a { color: #F3F1F7; }
.rc-footer__strip { padding-top: 0.5rem; }
.rc-strip { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; }
.rc-strip__belt { stroke: rgba(243, 241, 247, 0.25); stroke-width: 2; stroke-dasharray: 6 5; }
.rc-strip__arrow { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke: var(--c); }
.rc-strip__num { font: 900 13px var(--display); fill: #F3F1F7; }
.rc-strip__label { font: 600 9px var(--mono); letter-spacing: 1px; fill: #C4BCDB; }
.rc-strip__code--1 { --c: #3FC2BC; } .rc-strip__code--2 { --c: #F5B700; } .rc-strip__code--3 { --c: #F07AC0; }
.rc-strip__code--4 { --c: #8FA4F2; } .rc-strip__code--5 { --c: #FF8A5B; } .rc-strip__code--6 { --c: #B79CFF; } .rc-strip__code--7 { --c: #C4BCDB; }
.rc-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 2rem 1.5rem; }
.rc-footer__name { font-family: var(--display); font-weight: 900; font-size: 1.35rem; letter-spacing: -0.02em; color: #FFFFFF; margin-bottom: 0.4rem; }
.rc-footer__about p { font-size: 1rem; max-width: 42ch; }
.rc-footer__contact a { font-family: var(--display); font-weight: 700; word-break: break-word; }
.rc-footer__btn { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 0.9rem; padding: 0.6rem 1.1rem; border-radius: 999px; background: var(--resin); color: #1D1733 !important; text-decoration: none; }
.rc-footer__btn:hover { background: #FFFFFF; }
.rc-footer__head { font-family: var(--mono); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: #F5B700; margin-bottom: 0.7rem; }
.rc-footer ul { list-style: none; margin: 0; padding: 0; }
.rc-footer li { margin-bottom: 0.45rem; }
.rc-footer__col a { font-family: var(--display); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.rc-footer__col a:hover { text-decoration: underline; color: #F5B700; }
.rc-footer__base { border-top: 1px solid rgba(243, 241, 247, 0.16); padding-block: 1.2rem 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.rc-footer__base p { font-family: var(--display); font-size: 0.85rem; color: #B3ABC9; margin: 0; }
.rc-footer :focus-visible { outline-color: #F5B700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rc-footer__grid { grid-template-columns: 1fr 1fr; }
  .rc-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 1.04rem; }
  .home .tpp-section__head { padding-left: 3.1rem; }
  .home .tpp-section__head::before { width: 2.4rem; height: 2.2rem; font-size: 0.85rem; }
  .tpp-entry__side { position: static; }
  .tpp-page__head::after { width: 12rem; right: -3rem; }
}
@media (max-width: 480px) {
  .rc-footer__grid { grid-template-columns: 1fr; }
  .tpp-chips { gap: 0.3rem; }
  .tpp-chip { font-size: 0.8rem; padding: 0.35rem 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
