/* Texas SLO & Portfolio Hub: shared styles for redesigned pages (see DESIGN.md).
   Built on the TIA Brand Guide (2024); carried over from the Texas Portfolios page mockup. */
:root {
  --tia-blue: #015692; --teal-aaa: #006357; --teal-aa: #008477; --teal: #00a69b;
  --green: #87c54a; --yellow: #f8cc2b; --orange: #f16038; --orange-aa: #c94d31; --orange-aaa: #9b3723;
  --blue-tint: #d5eff7; --teal-tint: #dbefec; --sky: #f0f9fc; --sand: #e8e2da;
  --ink: #363533; --slate: #5a6268; --paper: #fff; --line: #d5eff7;
  --slab: "Roboto Slab", Cambria, Georgia, serif;
  --sans: "Open Sans", Calibri, "Segoe UI", Arial, sans-serif;
  --r: 6px;
  --lift: 0 2px 10px -4px rgba(1, 86, 146, .18);
}
* { box-sizing: border-box; }
body.hub { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.hub ::selection { background: var(--teal-tint); color: var(--teal-aaa); }
.hub a { color: var(--tia-blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.hub a:hover { text-decoration-thickness: 2px; }
.hub :focus-visible { outline: 3px solid var(--orange-aa); outline-offset: 2px; border-radius: 2px; }
.hub img { max-width: 100%; display: block; }
.hub h1, .hub h2, .hub h3 { font-family: var(--slab); font-weight: 500; color: var(--tia-blue); text-wrap: balance; }
.hub p { max-width: 68ch; }
.wrap { max-width: 78rem; padding-inline: 1rem; margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1em; height: 1em; flex: none; }
.skip { position: absolute; left: 1rem; top: -3rem; background: #fff; padding: .5rem .8rem; border: 2px solid var(--tia-blue); border-radius: var(--r); z-index: 10; font-weight: 700; }
.skip:focus { top: .5rem; }

/* Review notes: for Abe and reviewers, never for the live site */
.devbar { background: var(--ink); color: #fff; font: 600 .78rem/1.3 var(--sans); }
.devbar .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; padding-block: .45rem; }
.devbar button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.devbar button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.rn { font-size: .85rem; color: var(--slate); }
.rn::before { content: "Review note"; display: inline-block; font: 700 .7rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; border: 1.5px dashed var(--slate); border-radius: 3px; padding: .2rem .4rem; margin-right: .45rem; vertical-align: .1em; }
body.clean .rn { display: none !important; }

/* TEA utility strip, with the TIA lockup on the right */
.brandbar { background: var(--sand); font-size: .8rem; }
.brandbar .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .4rem; }
.brandbar .tea img { height: 22px; width: auto; }
.brandbar nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.brandbar nav a { color: var(--ink); text-decoration: none; }
.brandbar nav a:hover { text-decoration: underline; }
.tia-lock { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.tia-lock img { height: 38px; width: auto; }
.tia-lock .bar { width: 1px; height: 30px; background: var(--slate); }
.tia-lock .hubname { font: italic 600 .68rem/1.3 var(--sans); color: var(--tia-blue); letter-spacing: .04em; text-transform: uppercase; }
.tia-lock .hubname b { display: block; font-weight: 800; font-size: .76rem; }

/* Site header: logo and menu share one row */
.site { background: var(--paper); border-bottom: 1px solid var(--line); }
.site .wrap { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; padding-block: .35rem; }
.site .logo img { height: 38px; width: auto; }
.mainnav { margin-left: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
.mainnav a { display: block; padding: .85rem .65rem; font: 600 .9375rem var(--sans); white-space: nowrap; color: var(--ink); text-decoration: none; border-radius: 4px; }
.mainnav a:hover { background: var(--sky); }
.mainnav a[aria-current="page"] { color: var(--teal-aaa); box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }
.menu-btn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 700 1rem/1.2 var(--sans); padding: .85rem 1.25rem; border-radius: var(--r); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.hub .btn.primary { background: var(--teal-aa); color: #fff; }
.hub .btn.primary:hover { background: #fff; color: var(--teal-aaa); border-color: var(--teal-aaa); }
.hub .btn.secondary { background: #fff; color: var(--tia-blue); border-color: var(--tia-blue); }
.hub .btn.secondary:hover { background: var(--blue-tint); }

/* Page opening on the sky ground: text left, photo mosaic right */
.open { background: var(--sky); padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hero-top > * { min-width: 0; }
.open h1 { font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.01em; }
.open h1 .t { color: var(--teal-aaa); }
.open .def { font-size: 1.15rem; margin: 0; }

/* Photo mosaic: photos keep their true 3:2 shape, TIA color blocks fill the rest */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .5rem; }
.mosaic i { aspect-ratio: 3 / 2; }
.mosaic .b1 { grid-column: 1 / 3; height: .5rem; width: 40%; aspect-ratio: auto; background: var(--green); }
.mosaic figure { margin: 0; grid-column: 1 / 3; grid-row: 2 / 4; }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .b2 { grid-column: 3; grid-row: 2; background: var(--teal); }
.mosaic .b3 { grid-column: 3; grid-row: 3; background: var(--yellow); }
.mosaic .b4 { grid-column: 1; grid-row: 4; background: var(--tia-blue); }
.mosaic .b5 { grid-column: 1; grid-row: 5; background: var(--green); }
.mosaic figure.p2 { grid-column: 2 / 4; grid-row: 4 / 6; }

/* Section rhythm */
.band { padding: clamp(2.75rem, 2rem + 3vw, 4.5rem) 0; }
.band.sky { background: var(--sky); }
.band h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); line-height: 1.2; margin: 0 0 .6rem; }
.band .intro { margin: 0 0 1.6rem; }

/* Two measures side by side (Home): parallel structure for SLO and Portfolio */
.measures { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); }
.measure { background: #fff; border-radius: 0 0 var(--r) var(--r); box-shadow: var(--lift); border-top: 6px solid var(--stripe); padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; }
.measure.slo { --stripe: var(--tia-blue); }
.measure.portfolio { --stripe: var(--teal); }
.measure h2 { font-size: 1.6rem; line-height: 1.15; margin: 0 0 .5rem; }
.measure.portfolio h2 { color: var(--teal-aaa); }
.measure > p { margin: 0 0 1rem; }
.measure .links { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 1px solid var(--line); }
.measure .links li { border-bottom: 1px solid var(--line); }
.measure .links a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem .1rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.measure .links a:hover span { color: var(--tia-blue); text-decoration: underline; }
.measure .links .m { display: block; font-weight: 400; font-size: .85rem; color: var(--slate); }
.measure .links svg { width: 1rem; height: 1rem; color: var(--slate); }
.measure .btn { margin-top: auto; align-self: flex-start; }

/* Role doors: tabs with a numbered three-step path */
.door-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--tia-blue); border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.door-tabs button { all: unset; box-sizing: border-box; cursor: pointer; padding: 1rem 1.2rem; background: #fff; border-right: 1.5px solid var(--tia-blue); }
.door-tabs button:last-child { border-right: 0; }
.door-tabs button:hover { background: var(--sky); }
.door-tabs button:focus-visible { outline: 3px solid var(--orange-aa); outline-offset: -4px; }
.door-tabs .who { display: block; font: 500 1.2rem/1.2 var(--slab); color: var(--tia-blue); }
.door-tabs .ask { display: block; font-size: .9rem; color: var(--slate); margin-top: .2rem; }
.door-tabs button[aria-selected="true"] { background: var(--tia-blue); }
.door-tabs button[aria-selected="true"] .who, .door-tabs button[aria-selected="true"] .ask { color: #fff; }
.door-panel { background: #fff; border: 1.5px solid var(--tia-blue); border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: 1.4rem; box-shadow: var(--lift); }
.door-panel[hidden] { display: none; }
.door-panel .path-h { font-weight: 700; margin: 0 0 1rem; }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: p; }
.path li { counter-increment: p; position: relative; padding-top: 2.4rem; }
.path li::before { content: counter(p); position: absolute; top: 0; left: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--tia-blue); color: #fff; display: grid; place-items: center; font: 800 .85rem var(--sans); }
.path li::after { content: ""; position: absolute; top: .9rem; left: 2.4rem; right: -1rem; height: 2px; background: var(--line); }
.path li:last-child::after { display: none; }
.path b { display: block; font: 500 1.05rem/1.3 var(--slab); margin-bottom: .2rem; }
.path .then { font-size: .9rem; color: var(--slate); }
.door-panel .more { margin: 1.2rem 0 0; font-size: .95rem; }

/* SLO process: four stages as text (replaces the SLOProcess.png image) */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stage { background: #fff; border-top: 6px solid var(--stripe); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--lift); padding: 1.1rem 1.2rem 1.2rem; }
.stage:nth-child(1) { --stripe: var(--green); } .stage:nth-child(2) { --stripe: var(--teal); }
.stage:nth-child(3) { --stripe: var(--yellow); } .stage:nth-child(4) { --stripe: var(--tia-blue); }
.stage h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 .6rem; }
.stage h3 .l { font-size: 1.45em; line-height: 1; }
.stage abbr { text-decoration: none; }
.stage ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; line-height: 1.45; }
.stage li { margin: 0 0 .35rem; }
.stage li::marker { color: var(--slate); }

/* Video: a thumbnail button; the YouTube player loads only on click */
.video-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r); overflow: hidden; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; }
.video button img { width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--tia-blue); display: grid; place-items: center; border: 3px solid #fff; }
.video .play svg { width: 1.8rem; height: 1.8rem; color: #fff; margin-left: .25rem; }
.video button:hover .play { background: var(--teal-aaa); }
.video button:focus-visible { outline: 3px solid var(--orange-aa); outline-offset: -3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Get Support */
.support { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.support .mail { border-top: 3px solid var(--tia-blue); padding-top: 1rem; }
.support .mail .big { font: 500 1.4rem var(--slab); color: var(--teal-aaa); text-decoration: none; word-break: break-all; }
.support .mail p { margin: .4rem 0 0; }

/* TEA copyright notice: TEA's text, kept verbatim */
.copyright { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .85rem; line-height: 1.55; color: var(--slate); }
.copyright p, .copyright ol { max-width: 90ch; margin: 0 0 .6rem; }
.copyright ol { padding-left: 1.3rem; }

/* Footer: TEA state footer on Blue Tint */
.foot { background: var(--blue-tint); padding: 2.5rem 0 1.5rem; font-size: .88rem; }
.foot .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; }
.foot img { height: 54px; width: auto; margin-bottom: .6rem; }
.foot p { margin: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 .45rem; }
.foot .tiabar { margin-top: 2rem; display: grid; grid-template-columns: 2rem 2rem 2rem 1fr; height: .5rem; }
.foot .tiabar i:nth-child(1) { background: var(--teal); } .foot .tiabar i:nth-child(2) { background: var(--green); }
.foot .tiabar i:nth-child(3) { background: var(--yellow); } .foot .tiabar i:nth-child(4) { background: var(--tia-blue); }
.foot .legal { margin-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--ink); }

/* Narrow laptops and tablets */
@media (max-width: 1059px) {
  .site .wrap { padding-block: .6rem 0; }
  .mainnav { flex-basis: 100%; margin-left: 0; margin-top: .45rem; border-top: 1px solid var(--line); }
  .door-tabs { grid-template-columns: 1fr 1fr; }
  .door-tabs button:nth-child(2) { border-right: 0; }
  .door-tabs button:nth-child(-n+2) { border-bottom: 1.5px solid var(--tia-blue); }
  .stages { grid-template-columns: 1fr 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
/* Phones */
@media (max-width: 760px) {
  body.hub { font-size: 1rem; }
  .brandbar nav { display: none; }
  .brandbar .wrap { gap: 1rem; }
  .tia-lock img { height: 34px; }
  .tia-lock .hubname { font-size: .62rem; }
  .tia-lock .hubname b { font-size: .7rem; }
  .site .wrap { justify-content: space-between; padding-block: .6rem; }
  .site .logo img { height: 32px; }
  .menu-btn { display: inline-flex; align-items: center; gap: .4rem; font: 700 .9rem var(--sans); background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); padding: .45rem .8rem; color: var(--ink); cursor: pointer; }
  .mainnav { display: none; }
  .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; }
  .hero-top, .measures, .video-row, .support, .stages { grid-template-columns: 1fr; }
  .mosaic { margin-top: 1.25rem; }
  .mosaic .b4, .mosaic .b5, .mosaic figure.p2 { display: none; }
  .door-tabs button { padding: .8rem .9rem; }
  .door-tabs .who { font-size: 1.05rem; }
  .door-tabs .ask { font-size: .82rem; }
  .path { grid-template-columns: 1fr; gap: 1rem; }
  .path li { padding: 0 0 0 2.6rem; }
  .path li::after { display: none; }
}
@media print { .devbar, .brandbar, .menu-btn, .rn { display: none; } }
