/* GTS MemberNet */
:root {
  --bg: #0b1113;
  --surface: #121b1e;
  --surface-2: #192529;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef3f4;
  --muted: #93a6ab;
  --green: #43B886;
  --green-soft: rgba(67, 184, 134, .14);
  --amber: #F2AA54;
  --amber-soft: rgba(242, 170, 84, .14);
  --coral: #D85D41;
  --teal: #274E57;
  --radius: 14px;
  --font: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { color: #6fd3a8; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.search-hidden { display: none !important; }

.preview-bar { background: var(--amber); color: #231F20; text-align: center; font-weight: 600; padding: 6px 10px; font-size: 13px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: rgba(11, 17, 19, .92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.topbar-inner { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.brand { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.mainnav, .account { display: flex; gap: 4px; align-items: center; }
.account { margin-left: auto; }
.mainnav a, .account a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.mainnav a:hover, .account a:hover { color: var(--text); background: var(--surface); }
.mainnav a.on, .account a.on { color: var(--text); background: var(--surface-2); }
@media (max-width: 820px) {
  .topbar { position: static; }
  .topbar-inner { flex-wrap: wrap; gap: 6px 12px; padding-top: 12px; padding-bottom: 10px; }
  .mainnav { order: 3; width: 100%; overflow-x: auto; margin: 0 -12px; }
}

.main { padding-top: 40px; padding-bottom: 64px; }

/* Page headings */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.hero h1, .page-head h1 { font-size: 32px; font-weight: 700; }
.lede { color: var(--muted); font-size: 17px; margin: 8px 0 0; max-width: 640px; }
.page-head { margin-bottom: 28px; }
.search { position: relative; width: min(380px, 100%); }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--muted); }
.search input { width: 100%; padding: 12px 16px 12px 42px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* Featured strip */
.feature { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 26px 30px; margin-bottom: 28px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(39, 78, 87, .75), rgba(18, 27, 30, .9)); border: 1px solid var(--line-2); }
.feature-text { max-width: 640px; }
.feature h2 { font-size: 22px; font-weight: 700; margin: 4px 0 8px; }
.feature p { margin: 0; color: #cfdcdf; }
.feature p.eyebrow { color: var(--amber); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.button { display: inline-flex; align-items: center; gap: 10px; background: var(--coral); color: #fff; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 10px; white-space: nowrap; }
.button:hover { background: #e36f55; color: #fff; }
.button svg { width: 16px; height: 16px; fill: #fff; }
.button.small { font-size: 14px; padding: 9px 14px; }
.button.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.button.ghost:hover { background: var(--surface-2); }

/* Layout */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.col { display: grid; gap: 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.card + .card { margin-top: 0; }
.main > .card + .card, .main > section.card { margin-bottom: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.more { font-size: 14px; font-weight: 500; }
.group + .group { margin-top: 22px; }
.group .eyebrow, .card > .eyebrow { margin-bottom: 8px; }
.card > .eyebrow { margin-top: 24px; }

/* Link rows */
ul.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; color: var(--text); }
.row:hover { background: var(--surface-2); color: var(--text); }
.row .ico { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); }
.row .ico svg { width: 16px; height: 16px; fill: var(--green); }
.row.accent .ico { background: var(--amber-soft); }
.row.accent .ico svg { fill: var(--amber); }
.row .txt { font-size: 15px; font-weight: 500; line-height: 1.35; }
.row .txt small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.row:hover .txt { color: #fff; }

/* Blog posts */
ul.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.posts a { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 10px; }
ul.posts a:hover { background: var(--surface-2); }
ul.posts a.noimg { grid-template-columns: 1fr; }
ul.posts img { width: 112px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
ul.posts strong { display: block; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.35; }
ul.posts em, ul.emails em { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Emails */
ul.emails { list-style: none; margin: 0; padding: 0; }
ul.emails li + li { border-top: 1px solid var(--line); }
ul.emails a { display: flex; flex-direction: column-reverse; padding: 12px 0; }
ul.emails strong { color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.4; }
ul.emails a:hover strong { color: var(--green); }
ul.emails em { margin: 0 0 3px; }

/* Meetings */
ul.events { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 12px; }
ul.events li { display: flex; gap: 16px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.when { flex: none; width: 58px; text-align: center; border-radius: 10px; background: var(--green-soft); padding: 8px 0; align-self: flex-start; }
.when .mon { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.when .day { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; }
.what strong { display: block; font-size: 16px; font-weight: 600; }
.what span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.cal { display: inline-flex; gap: 7px; align-items: center; font-size: 14px; font-weight: 600; margin-top: 8px; }
.cal svg { width: 14px; height: 14px; fill: var(--green); }
.meeting h4 { margin: 16px 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
details.older { margin-top: 14px; }
details.older summary, details summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: 15px; }

/* Instagram */
.ig-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ig-head img { width: 48px; height: 48px; border-radius: 50%; }
.ig-head strong { display: block; font-size: 15px; font-weight: 600; }
.ig-head span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig-grid a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ig-grid a:hover img { transform: scale(1.04); }
.ig-grid a.is-video::after, .yt-grid .play { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%); border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent rgba(255,255,255,.92); filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }

/* YouTube */
.yt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
.yt-grid a { display: block; color: var(--text); }
.yt-grid .thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.yt-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.yt-grid a:hover img { transform: scale(1.04); }
.yt-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 500; line-height: 1.4; margin-top: 8px; }
.yt-grid a:hover .yt-title { color: var(--green); }

/* Archives */
.archive { columns: 3 240px; column-gap: 40px; }
.archive .year { break-inside: avoid; margin-bottom: 22px; }
.archive h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.year-block { margin-bottom: 24px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols3 .eyebrow { margin-bottom: 6px; }
@media (max-width: 760px) { .cols3 { grid-template-columns: 1fr; } }

/* Standalone pages */
.prose { max-width: 880px; font-size: 16px; line-height: 1.7; }
.prose img { margin: 0 0 24px; border-radius: 10px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose h4 { font-size: 16px; margin: 20px 0 6px; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose li { margin: 4px 0; }

/* Tables, stats, toolbar (status + login report) */
.table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
td.bad { color: var(--amber); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.toolbar label { color: var(--muted); font-size: 14px; }
.toolbar select { font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; margin-right: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; color: var(--muted); font-size: 14px; }
.stat span { display: block; color: var(--text); font-size: 30px; font-weight: 700; line-height: 1.2; }
ul.plain { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; text-align: center; }
.social { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; transition: background .15s; }
.social a:hover { background: #33656f; }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer .brands { max-width: 620px; width: 100%; margin: 0 auto; opacity: .85; }
.fine { color: var(--muted); font-size: 13px; margin: 22px 0 0; }

.no-results { text-align: center; color: var(--muted); }

/* Video pop-up */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.86); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal[hidden] { display: none; }
.modal-inner { position: relative; width: min(960px, 100%); }
.modal-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; }

/* Login */
.view-login { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.login-box { width: min(400px, 100%); }
.login-box .brand { display: block; font-size: 24px; margin: 0; text-align: center; }
.login-box .lede { text-align: center; font-size: 15px; margin: 6px 0 24px; }
.login-box form { padding: 28px; }
.login-box label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; color: var(--muted); }
.login-box input[type=text], .login-box input[type=password] { width: 100%; padding: 12px 14px; font: inherit; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); margin-bottom: 18px; }
.login-box input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.login-box button { width: 100%; padding: 12px; font: inherit; font-weight: 600; color: #fff; background: var(--coral); border: 0; border-radius: 10px; cursor: pointer; margin-top: 4px; }
.login-box button:hover { background: #e36f55; }
.login-box .err, .login-box .ok { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; }
.login-box .err { background: rgba(216, 93, 65, .18); border: 1px solid rgba(216, 93, 65, .5); }
.login-box .ok { background: var(--green-soft); border: 1px solid rgba(67, 184, 134, .4); }

/* Password reset */
.toolbar button { font: inherit; border: 0; cursor: pointer; }
.toolbar select { max-width: 100%; }
.reset-out { margin-top: 18px; }
.reset-out textarea { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; margin: 8px 0 10px; resize: vertical; }
.login-box .hint { font-size: 13px; color: var(--muted); margin: -10px 0 18px; }
