
/* Networking & Technical public study hub and long-form guides */
:root {
  --tech-ink: #10233f;
  --tech-muted: #5b6b82;
  --tech-blue: #079bd8;
  --tech-teal: #08b7ae;
  --tech-soft: #eef9ff;
  --tech-border: #d8e8f2;
  --tech-card: rgba(255,255,255,.94);
  --tech-shadow: 0 16px 45px rgba(18, 62, 91, .10);
}

body.tech-study-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(65,181,238,.12), rgba(255,244,238,.28) 48%, rgba(70,219,190,.14)),
    #f8fcff;
  color: var(--tech-ink);
}

.tech-study-page .container { max-width: 1120px; }
.tech-study-page header { padding: 20px 24px; }
.tech-study-page .logo-container { max-width: 760px; margin: 0 auto; }
.tech-study-page .site-brand-title { margin: 0; }

.tech-breadcrumb {
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
  margin: 26px 0 20px; padding: 9px 13px; width: fit-content;
  border: 1px solid var(--tech-border); border-radius: 999px;
  background: rgba(255,255,255,.82); font-size: .82rem; color: var(--tech-muted);
}
.tech-breadcrumb a { color: #087fac; font-weight: 700; text-decoration: none; }

.tech-hero {
  position: relative; overflow: hidden;
  padding: 34px; border: 1px solid var(--tech-border); border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(235,249,255,.96));
  box-shadow: var(--tech-shadow);
}
.tech-hero::after {
  content: ""; position: absolute; right: -55px; top: -65px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(8,183,174,.24), rgba(8,183,174,0) 70%);
}
.tech-kicker { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 12px; color: #077d8a; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.tech-kicker-dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--tech-blue), var(--tech-teal)); box-shadow: 0 0 0 5px rgba(7,155,216,.11); }
.tech-hero h1 { max-width: 760px; margin: 0; font-size: clamp(2rem, 5vw, 3.45rem); line-height: 1.04; letter-spacing: -.045em; }
.tech-hero p { max-width: 780px; margin: 17px 0 0; color: var(--tech-muted); font-size: 1.05rem; line-height: 1.75; }
.tech-meta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.tech-meta-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #cde4f1; border-radius: 999px; background: #f9fdff; color: #31536a; font-size: .78rem; font-weight: 700; }

.tech-overview-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; margin-top: 22px; }
.tech-panel { padding: 24px; border: 1px solid var(--tech-border); border-radius: 22px; background: var(--tech-card); box-shadow: 0 10px 28px rgba(18,62,91,.07); }
.tech-panel h2, .tech-panel h3 { margin-top: 0; }
.tech-panel p:last-child { margin-bottom: 0; }

.tech-search-panel { margin-top: 24px; padding: 14px; border: 1px solid var(--tech-border); border-radius: 20px; background: rgba(255,255,255,.86); }
.tech-filter-grid { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 12px; }
.tech-filter-grid input, .tech-filter-grid select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cbdfe9; border-radius: 14px;
  background: #fbfdff; color: var(--tech-ink); font: inherit; outline: none;
}
.tech-filter-grid input:focus, .tech-filter-grid select:focus { border-color: var(--tech-blue); box-shadow: 0 0 0 4px rgba(7,155,216,.11); }

.tech-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 36px 0 16px; }
.tech-section-head h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.tech-section-head p { margin: 5px 0 0; color: var(--tech-muted); }
.tech-topic-count { color: #057c98; font-size: .84rem; font-weight: 800; white-space: nowrap; }

.tech-topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.tech-topic-card {
  display: flex; flex-direction: column; min-height: 270px; padding: 20px;
  border: 1px solid var(--tech-border); border-radius: 21px; background: var(--tech-card);
  box-shadow: 0 10px 28px rgba(18,62,91,.07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tech-topic-card:hover { transform: translateY(-4px); border-color: #9ad5e9; box-shadow: 0 17px 38px rgba(18,62,91,.12); }
.tech-topic-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 15px; background: linear-gradient(135deg, #e5f8ff, #e8fff9); color: #0786a4; font-size: .86rem; font-weight: 900; letter-spacing: -.02em; padding: 3px; box-sizing: border-box; }
.tech-topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 9px; }
.tech-tag { padding: 4px 8px; border-radius: 999px; background: #edf8fd; color: #28718a; font-size: .67rem; font-weight: 800; }
.tech-topic-card h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; }
.tech-topic-card p { margin: 0 0 17px; color: var(--tech-muted); font-size: .86rem; line-height: 1.58; }
.tech-topic-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin-top: auto; padding: 8px 12px; border-radius: 12px; background: linear-gradient(135deg, var(--tech-blue), var(--tech-teal)); color: #fff; text-decoration: none; font-size: .8rem; font-weight: 800; }
.tech-topic-link:hover { filter: brightness(.97); }
.tech-empty { display: none; margin-top: 18px; padding: 22px; border: 1px dashed #b9d7e5; border-radius: 18px; background: #fff; text-align: center; color: var(--tech-muted); }

/* Article layout */
.tech-reading-progress { position: fixed; inset: 0 auto auto 0; z-index: 999; width: 0; height: 4px; background: linear-gradient(90deg, var(--tech-blue), var(--tech-teal)); }
.tech-article-shell { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 24px; align-items: start; margin-top: 24px; }
.tech-toc { position: sticky; top: 82px; padding: 18px; border: 1px solid var(--tech-border); border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(18,62,91,.07); }
.tech-toc strong { display: block; margin-bottom: 10px; }
.tech-toc a { display: block; padding: 7px 9px; border-radius: 9px; color: #476278; text-decoration: none; font-size: .78rem; line-height: 1.35; }
.tech-toc a:hover, .tech-toc a.is-active { background: #eaf8fd; color: #057a9c; }
.tech-article { min-width: 0; }
.tech-article-section { scroll-margin-top: 95px; margin-bottom: 19px; padding: 27px; border: 1px solid var(--tech-border); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(18,62,91,.07); }
.tech-article-section h2 { margin: 0 0 15px; font-size: clamp(1.35rem, 2.6vw, 1.85rem); letter-spacing: -.02em; }
.tech-article-section h3 { margin: 22px 0 10px; font-size: 1.1rem; }
.tech-article-section p, .tech-article-section li { color: #40556a; line-height: 1.76; }
.tech-article-section ul, .tech-article-section ol { padding-left: 22px; }
.tech-article-section li + li { margin-top: 7px; }
.tech-article-section a { color: #057ea4; font-weight: 700; }
.tech-lead { font-size: 1.04rem; }
.tech-callout { margin: 18px 0; padding: 16px 18px; border-left: 4px solid var(--tech-blue); border-radius: 13px; background: #eef9ff; color: #274c63; }
.tech-callout.warning { border-left-color: #f59e0b; background: #fff8e8; }
.tech-callout.success { border-left-color: #0ea876; background: #ecfff8; }
.tech-callout strong { color: var(--tech-ink); }
.tech-table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--tech-border); border-radius: 15px; }
.tech-table { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; }
.tech-table th, .tech-table td { padding: 12px 13px; border-bottom: 1px solid #e3edf3; text-align: left; vertical-align: top; }
.tech-table th { background: #eef9fd; color: #21455b; font-size: .78rem; text-transform: uppercase; letter-spacing: .035em; }
.tech-table td { color: #40556a; font-size: .86rem; line-height: 1.55; }
.tech-table tr:last-child td { border-bottom: 0; }
.tech-code { position: relative; margin: 16px 0; overflow: hidden; border-radius: 16px; background: #10233f; color: #edf7ff; }
.tech-code-label { display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; background: rgba(255,255,255,.08); color: #bcd7e7; font-size: .72rem; font-weight: 800; }
.tech-copy-btn { border: 0; border-radius: 8px; padding: 5px 8px; background: rgba(255,255,255,.13); color: #fff; cursor: pointer; font: inherit; font-size: .7rem; }
.tech-code pre { margin: 0; padding: 16px; overflow-x: auto; font: 500 .82rem/1.62 Consolas, Monaco, monospace; white-space: pre; }
.tech-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.tech-flow-step { position: relative; padding: 14px 10px; border: 1px solid #cce3ed; border-radius: 14px; background: linear-gradient(135deg,#f7fdff,#effcf9); text-align: center; color: #27546b; font-size: .8rem; font-weight: 800; }
.tech-flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translate(50%,-50%); color: #08a5b4; font-size: 1rem; }
.tech-diagram { margin: 18px 0; padding: 20px; border: 1px solid #d5e7ef; border-radius: 18px; background: linear-gradient(135deg,#f6fcff,#f1fff9); }
.tech-diagram-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.tech-node { min-width: 112px; padding: 12px; border: 1px solid #a9d4e4; border-radius: 13px; background: #fff; text-align: center; font-size: .78rem; font-weight: 800; box-shadow: 0 5px 14px rgba(18,62,91,.07); }
.tech-link-line { color: #0799aa; font-weight: 900; }
.tech-quiz details { margin: 11px 0; border: 1px solid #dbe9f0; border-radius: 14px; background: #fbfeff; }
.tech-quiz summary { padding: 14px 16px; cursor: pointer; color: #294b60; font-weight: 800; }
.tech-quiz details div { padding: 0 16px 15px; color: #526779; line-height: 1.65; }
.tech-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.tech-related-card { padding: 16px; border: 1px solid #d7e8f0; border-radius: 15px; background: #fafdff; text-decoration: none; }
.tech-related-card strong { display: block; color: #183c52; }
.tech-related-card span { display: block; margin-top: 5px; color: #627586; font-size: .76rem; }
.tech-sources { font-size: .83rem; }
.tech-sources li { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .tech-overview-grid, .tech-article-shell { grid-template-columns: 1fr; }
  .tech-toc { position: static; }
  .tech-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tech-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tech-flow-step:nth-child(2)::after { display: none; }
}
@media (max-width: 620px) {
  .tech-study-page header { padding: 14px 12px; }
  .tech-study-page .container { padding-left: 12px; padding-right: 12px; }
  .tech-hero { padding: 24px 19px; border-radius: 22px; }
  .tech-filter-grid, .tech-topic-grid, .tech-related-grid { grid-template-columns: 1fr; }
  .tech-topic-card { min-height: 0; }
  .tech-article-section { padding: 20px 17px; border-radius: 18px; }
  .tech-flow { grid-template-columns: 1fr; }
  .tech-flow-step::after { display: none !important; }
  .tech-section-head { align-items: start; flex-direction: column; }
}
@media print {
  nav.site-nav, .tech-toc, .tech-reading-progress, .ngs-footer, .tech-copy-btn { display: none !important; }
  body.tech-study-page { background: #fff; }
  .tech-article-shell { display: block; }
  .tech-hero, .tech-article-section { box-shadow: none; break-inside: avoid; }
}
