/* Shared presentation for BitFire research articles. Load after enterprise-docs.css. */

.research-article-page { color: var(--text-dark); }
.research-article-hero { padding-bottom: 96px; }
.research-article-hero h1 { max-width: 920px; overflow-wrap: anywhere; }
.research-article-hero .docs-hero-grid { align-items: center; margin-bottom: 56px; }
.research-article-hero .hero-lede { max-width: 820px; }
.article-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 12px; border: 1px solid rgba(243,206,141,.25); border-radius: 999px; color: #f1ce92; background: rgba(243,206,141,.08); font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.article-status::before { width: 7px; height: 7px; content: ""; border-radius: 50%; background: currentColor; }
.article-status.status-code { color: #9edcf6; border-color: rgba(91,173,218,.28); background: rgba(91,173,218,.08); }
.article-status.status-history { color: #f1ce92; }

.research-hero-card { padding: 7px; }
.research-hero-card figure { margin: 0; }
.research-hero-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 15px; }
.research-hero-card figcaption { padding: 15px 13px 8px; color: #8099a9; }
.research-hero-card .recommendation-label { padding: 15px 13px 0; }

.article-summary-panel { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: center; padding: 31px; border: 1px solid rgba(167,210,233,.17); border-radius: 20px; background: rgba(255,255,255,.035); }
.article-summary-panel > div:first-child small { display: block; margin-bottom: 8px; color: #64bee9; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.article-summary-panel h2 { margin: 0; color: #e5f1f7; line-height: 1.2; }
.article-summary-panel ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.article-summary-panel li { position: relative; padding-left: 25px; color: #9db1be; }
.article-summary-panel li::before { position: absolute; left: 0; content: "✓"; color: #62c18a; font-weight: 900; }

.research-article-body { border-top: 1px solid #e0e7ec; }
.research-documentation { max-width: 900px; }
.research-documentation .doc-section { padding-bottom: 104px; }
.article-prose { max-width: 790px; color: #556d7c; line-height: 1.82; }
.article-prose + .article-prose { margin-top: 18px; }
.research-documentation a:not(.button):not(.related-card) { color: #126f9f; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.research-documentation a:hover { color: #084f77; }
.research-documentation code:not(pre code) { padding: 2px 6px; border-radius: 5px; color: #155f87; background: #e7f2f7; font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.definition-box { display: grid; grid-template-columns: 42px 1fr; gap: 17px; margin: 24px 0; padding: 25px; border: 1px solid #cde2ec; border-radius: 17px; background: #f2f8fb; }
.definition-box > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #126f9f; background: #dceef6; font-family: ui-monospace, monospace; font-weight: 850; }
.definition-box small { display: block; margin-bottom: 4px; color: #1676a7; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.definition-box strong { display: block; margin-bottom: 5px; color: #203d50; }
.definition-box p { margin: 0; color: #5b7180; }

.action-list { display: grid; gap: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid #dbe4ea; border-radius: 18px; list-style: none; }
.action-list li { display: grid; grid-template-columns: 48px 1fr; gap: 17px; padding: 23px; border-bottom: 1px solid #e1e8ed; }
.action-list li:last-child { border-bottom: 0; }
.action-list > li > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #cfe0e9; border-radius: 13px; color: #197bad; background: #f1f8fb; font-family: ui-monospace, monospace; font-weight: 800; }
.action-list strong { display: block; margin-bottom: 5px; color: #203b4e; }
.action-list p { margin: 0; color: #607482; }

.quick-facts { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border: 1px solid #dbe4ea; border-radius: 18px; }
.quick-facts div { min-height: 125px; padding: 23px; border-right: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed; }
.quick-facts div:nth-child(2n) { border-right: 0; }
.quick-facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.quick-facts dt { margin-bottom: 10px; color: #718592; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.quick-facts dd { margin: 0; color: #1a3446; font-weight: 750; line-height: 1.45; }

.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 25px 0; }
.option-grid article { min-height: 235px; padding: 25px; border: 1px solid #dbe4ea; border-radius: 17px; background: #fbfdff; }
.option-grid span { display: block; margin-bottom: 35px; color: #218bc9; font-family: ui-monospace, monospace; font-weight: 850; }
.option-grid h3 { margin-bottom: 9px; color: #203b4e; }
.option-grid p { margin: 0; color: #607482; }

.code-frame { overflow: hidden; margin: 26px 0; border: 1px solid #1a394f; border-radius: 18px; background: #07131f; box-shadow: 0 24px 54px rgba(7,19,34,.16); }
.code-frame figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 14px 19px; color: #9db4c2; border-bottom: 1px solid rgba(255,255,255,.09); background: #0b2032; font-family: ui-monospace, monospace; }
.code-frame figcaption span:last-child { color: #64bee9; }
.code-frame pre { max-width: 100%; margin: 0; padding: 24px; overflow-x: auto; color: #d6e8f1; background: #07131f; tab-size: 4; }
.code-frame code { font: .86rem/1.68 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.code-note { margin-top: -8px; color: #667c89; }

.limit-grid { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border: 1px solid #dbe4ea; border-radius: 18px; }
.limit-grid article { min-height: 170px; padding: 24px; border-right: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed; }
.limit-grid article:nth-child(2n) { border-right: 0; }
.limit-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
.limit-grid strong { display: block; margin-bottom: 7px; color: #203b4e; }
.limit-grid p { margin: 0; color: #607482; }

.article-figure { margin: 28px 0; overflow: hidden; border: 1px solid #d7e2e8; border-radius: 19px; background: #f7fafc; }
.article-figure img { width: 100%; height: auto; }
.article-figure figcaption { padding: 14px 20px; color: #617684; border-top: 1px solid #dfe7ec; }

.log-reality { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.log-reality article { padding: 24px; border: 1px solid #dbe4ea; border-radius: 16px; }
.log-reality strong { display: block; margin-bottom: 7px; color: #203b4e; }
.log-reality p { margin: 0; color: #607482; }

.timeline { display: grid; gap: 0; margin: 0; padding: 0; border-left: 2px solid #d6e4eb; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 125px 1fr; gap: 22px; padding: 0 0 30px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { position: absolute; top: 5px; left: -8px; width: 14px; height: 14px; content: ""; border: 3px solid #fff; border-radius: 50%; background: #218bc9; box-shadow: 0 0 0 2px #a9d3e5; }
.timeline time { color: #1676a7; font-weight: 850; }
.timeline strong { display: block; margin-bottom: 5px; color: #203b4e; }
.timeline p { margin: 0; color: #607482; }

.layer-chain { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); overflow-x: auto; margin: 25px 0; padding: 8px; border-radius: 18px; color: #dceaf2; background: #0b1f32; }
.layer-chain article { min-height: 210px; padding: 20px; border-right: 1px solid rgba(167,210,233,.11); }
.layer-chain article:last-child { border-right: 0; }
.layer-chain span { display: block; margin-bottom: 38px; color: #5eb9e5; font-family: ui-monospace, monospace; font-weight: 800; }
.layer-chain strong { display: block; margin-bottom: 6px; }
.layer-chain p { margin: 0; color: #849baa; }

.results-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.result { display: inline-block; padding: 5px 9px; border: 1px solid #d6e1e7; border-radius: 8px; color: #526a79; background: #f7fafc; font-weight: 800; line-height: 1.35; }
.result-blocked { color: #106943; border-color: #b9ddc8; background: #edf8f2; }
.result-bypassed { color: #9c4c20; border-color: #ecc7b3; background: #fff3ec; }
.result-not-blocked { color: #8e3f3b; border-color: #ebc5c3; background: #fff0ef; }
.result-manual { color: #7d5a18; border-color: #e6d1a6; background: #fff8e8; }
.result-not-recorded { color: #64727c; }
.research-results { margin: 0; }
.research-results table { min-width: 1180px; }
.research-results caption { padding: 18px; color: #284357; background: #f8fafc; font-weight: 800; text-align: left; }
.research-results th, .research-results td { min-width: 148px; padding: 15px; vertical-align: top; }
.research-results thead th:first-child { position: sticky; left: 0; z-index: 2; min-width: 150px; }
.research-results tbody th { position: sticky; left: 0; z-index: 1; min-width: 150px; background: #fff; }
.research-results .result { white-space: normal; }
.table-note { margin-top: 12px; color: #697d89; }

.observation-list { display: grid; gap: 13px; }
.observation-card { padding: 25px; border: 1px solid #dbe4ea; border-radius: 17px; }
.observation-card header { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 12px; }
.observation-card h3 { margin: 0; color: #203b4e; }
.observation-card header a { font-weight: 800; white-space: nowrap; }
.observation-card p { margin: 0; color: #607482; line-height: 1.75; }

.source-list { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid #dfe7ec; list-style: none; }
.source-list li { padding: 20px 0; border-bottom: 1px solid #dfe7ec; }
.source-list a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.source-list p { margin: 5px 0 0; color: #687c89; }

.editorial-disclosure { margin-top: 25px; padding: 25px; border: 1px solid #edd4ad; border-radius: 16px; color: #6d552f; background: #fff9ee; }
.editorial-disclosure strong { display: block; margin-bottom: 7px; color: #8a5e18; letter-spacing: .07em; text-transform: uppercase; }
.editorial-disclosure p { margin: 0; }

.related-research { padding: 90px 0; color: var(--text-dark); background: var(--paper); }
.related-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 32px; }
.related-heading h2 { margin: 0; font-weight: 790; letter-spacing: -.05em; }
.related-heading > a { color: #1475a8; font-weight: 850; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-card { min-width: 0; display: grid; grid-template-columns: 180px 1fr; overflow: hidden; border: 1px solid #d8e3e9; border-radius: 18px; background: #fff; transition: transform 160ms ease, box-shadow 160ms ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(7,19,34,.1); }
.related-card img { width: 100%; height: 100%; object-fit: cover; }
.related-card div { padding: 22px; }
.related-card small { display: block; margin-bottom: 9px; color: #1676a8; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.related-card strong { display: block; color: #203b4e; line-height: 1.4; }

.research-article-cta .section-kicker { color: #5eb9e5; }

@media (max-width: 1050px) {
  .option-grid { grid-template-columns: 1fr; }
  .option-grid article { min-height: 0; }
  .related-card { grid-template-columns: 145px 1fr; }
}
@media (max-width: 820px) {
  .research-article-hero { padding-bottom: 78px; }
  .article-summary-panel { grid-template-columns: 1fr; gap: 20px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .research-article-hero { padding-bottom: 64px; }
  .article-summary-panel { padding: 23px; }
  .definition-box { grid-template-columns: 1fr; padding: 22px; }
  .action-list li { grid-template-columns: 40px 1fr; padding: 20px; }
  .action-list > li > span { width: 38px; height: 38px; }
  .quick-facts, .limit-grid { grid-template-columns: 1fr; }
  .quick-facts div, .quick-facts div:nth-child(2n), .quick-facts div:nth-last-child(-n + 2), .limit-grid article, .limit-grid article:nth-child(2n), .limit-grid article:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid #e1e8ed; }
  .quick-facts div:last-child, .limit-grid article:last-child { border-bottom: 0; }
  .code-frame { margin-inline: -5px; border-radius: 13px; }
  .code-frame figcaption { align-items: flex-start; flex-direction: column; gap: 3px; }
  .code-frame pre { padding: 18px; }
  .log-reality { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 3px; }
  .observation-card header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .related-heading { align-items: flex-start; flex-direction: column; }
  .related-card { grid-template-columns: 1fr; }
  .related-card img { aspect-ratio: 16 / 8; }
}
