/* =====================================================================
   BriefTravel look (2026-11-26): section colors, cards, bands, hero.
   Loaded after the Brief shell; the shell (header, footer, fonts, accent) is unchanged.
   ===================================================================== */
.bb-icon{display:block;flex:none}

/* Home hero */
.bb-hero{display:grid;grid-template-columns:1.4fr 1fr;gap:28px;align-items:center;margin:8px 0 34px;padding:40px 40px 36px;border-radius:16px;
  background:radial-gradient(120% 140% at 100% 0%,#2b3f63 0%,var(--bx-ink,#1a2744) 55%);color:#f4efe4;box-shadow:0 10px 30px rgba(26,39,68,.18);overflow:hidden}
.bb-hero h1{color:#fff;font-family:var(--bx-display);font-size:2.7rem;margin:0 0 .25em;letter-spacing:-.01em}
.bb-hero p{color:#d6dbe6;font-size:1.12rem;margin:0 0 1.1em;max-width:46ch;font-family:var(--bx-body)}
.bb-hero-search{display:flex;align-items:center;gap:10px;background:#fff;border-radius:999px;padding:6px 8px 6px 16px;max-width:520px;color:#6b7280;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.bb-hero-search input{flex:1;border:0;outline:0;font-size:1rem;padding:8px 6px;color:#1a2744;background:transparent;font-family:var(--bx-ui)}
.bb-hero p.bb-hero-stats{font-family:var(--bx-ui);font-size:.9rem;color:#aeb7c9;margin:16px 0 0}
.bb-hero-stats strong{color:#fff}
.bb-hero-art{position:relative;height:220px}
.bb-hero-tile{position:absolute;width:74px;height:74px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 8px 22px rgba(0,0,0,.25)}
.bb-hero-tile.t0{left:4%;top:10%;background:#3a4a6b;transform:rotate(-6deg)}
.bb-hero-tile.t1{left:38%;top:0;background:#9b3d2e;transform:rotate(4deg);width:88px;height:88px}
.bb-hero-tile.t2{left:74%;top:16%;background:#6d4c8f;transform:rotate(-3deg)}
.bb-hero-tile.t3{left:14%;top:58%;background:#b8862b;transform:rotate(5deg)}
.bb-hero-tile.t4{left:48%;top:54%;background:#2f6b4f;transform:rotate(-5deg);width:84px;height:84px}
.bb-hero-tile.t5{left:80%;top:64%;background:#2e5a88;transform:rotate(3deg)}
@media(max-width:860px){.bb-hero{grid-template-columns:1fr;padding:30px 22px}.bb-hero-art{display:none}.bb-hero h1{font-size:2.1rem}}

/* Home blocks */
.bb-home-block{margin:0 0 38px}
.bb-block-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 14px;border-bottom:1px solid var(--bx-line,#e4dfd5);padding-bottom:8px}
.bb-block-head h2{font-family:var(--bx-display);font-size:1.55rem;margin:0}
.bb-block-head a{font-family:var(--bx-ui);font-size:.9rem;color:var(--bx-accent-ink,#7a5714);font-weight:600}

/* Card grids */
.bb-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin:0 0 8px}
.bb-cards.cols-3{grid-template-columns:repeat(3,1fr)}
.bb-cards.cols-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:960px){.bb-cards.cols-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.bb-cards.cols-3{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.bb-cards.cols-3,.bb-cards.cols-4{grid-template-columns:1fr}}
.bb-card{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--bx-line,#e4dfd5);border-radius:12px;padding:12px 14px;color:inherit;text-decoration:none;transition:transform .12s ease,box-shadow .12s ease,border-color .12s}
.bb-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(26,39,68,.10);border-color:#d3cdbf;text-decoration:none}
.bb-card.has-img{flex-direction:column;padding:0;overflow:hidden;gap:0}
.bb-card-img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;background:#ece8df}
.bb-card.has-img .bb-card-body{padding:11px 14px 13px}
.bb-card-art{flex:none;width:46px;height:46px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff)}
.bb-card-body{display:flex;flex-direction:column;min-width:0}
.bb-card-k{font-family:var(--bx-ui);font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:2px}
.bb-card-t{font-family:var(--bx-display);font-weight:700;font-size:1.06rem;line-height:1.25;color:#1a2744}
.bb-card-s{font-family:var(--bx-ui);font-size:.86rem;line-height:1.4;color:#5b6675;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bb-card-flag{display:inline-block;margin-left:7px;padding:1px 7px;border-radius:99px;background:#fff1cc;color:#7a5200;font-family:var(--bx-ui);font-size:.66rem;font-weight:700;vertical-align:middle;letter-spacing:.03em}

/* Home: sections */
.bb-sections{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.bb-sec-card{background:#fff;border:1px solid var(--bx-line,#e4dfd5);border-top:4px solid var(--c);border-radius:12px;padding:16px 18px}
.bb-sec-card-head{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none}
.bb-sec-card-head:hover strong{text-decoration:underline}
.bb-sec-card-head strong{display:block;font-family:var(--bx-display);font-size:1.2rem;color:#1a2744}
.bb-sec-card-head small{font-family:var(--bx-ui);color:#6b7280;font-size:.82rem}
.bb-sec-card p{font-family:var(--bx-ui);font-size:.9rem;color:#4a5466;margin:10px 0 8px}
.bb-sec-card ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.bb-sec-card li a{display:inline-block;font-family:var(--bx-ui);font-size:.82rem;padding:3px 10px;border-radius:99px;background:color-mix(in srgb,var(--c) 9%,#fff);color:color-mix(in srgb,var(--c) 85%,#000);text-decoration:none}
.bb-sec-card li a:hover{background:var(--c);color:#fff}
.bb-sec-card li span{display:none}
.bb-sec-icon{flex:none;width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--c);color:#fff}

/* Section pages */
.bb-sec-head{display:flex;gap:16px;align-items:center;margin:4px 0 10px}
.bb-sec-head .bb-sec-icon{width:60px;height:60px;border-radius:15px}
.bb-sec-head .page-title{margin:0}
.bb-sec-head .page-subtitle{margin:.15em 0 0}
.bb-sec-intro{max-width:72ch;font-family:var(--bx-body);font-size:1.05rem;line-height:1.65;color:#2f3747;margin:6px 0 8px}
.bb-sec-intro p{margin:0 0 .8em}
.bb-subnav{margin:14px 0 22px}
.bb-subnav a[aria-current]{background:var(--c,var(--bx-accent));border-color:var(--c,var(--bx-accent))}
.bb-group{margin:0 0 30px}
.bb-group-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin:0 0 12px;padding-left:12px;border-left:4px solid var(--bx-line,#e4dfd5)}
.bb-group-head h2{font-family:var(--bx-display);font-size:1.3rem;margin:0}
.bb-group-head h2 a{color:#1a2744;text-decoration:none}
.bb-group-head h2 a:hover{text-decoration:underline}
.bb-group-head p{margin:0;font-family:var(--bx-ui);font-size:.88rem;color:#6b7280}

/* Entry banner: photo or illustrated band */
.bb-hero-fig{margin:6px 0 18px;max-width:68ch}
.bb-hero-fig img{display:block;width:100%;max-height:380px;object-fit:cover;border-radius:12px;background:#ece8df}
.bb-hero-fig figcaption{font-family:var(--bx-ui);font-size:.76rem;color:#6b7280;margin-top:6px;line-height:1.35}
.bb-band{position:relative;overflow:hidden;max-width:68ch;height:120px;margin:6px 0 18px;border-radius:12px;display:flex;align-items:center;gap:16px;padding:0 24px;color:#fff;
  background:linear-gradient(120deg,var(--c) 0%,color-mix(in srgb,var(--c) 70%,#1a2744) 100%)}
.bb-band-icon{position:relative;z-index:1;opacity:.95}
.bb-band-ghost{position:absolute;right:-18px;top:-22px;opacity:.13}
.bb-band-label{position:relative;z-index:1;font-family:var(--bx-ui);font-weight:700;font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;opacity:.9}

/* Legal review */
.bb-review-note{margin:12px 0;padding:12px 16px;border:1px solid #e2c46a;background:#fff6db;border-radius:10px;font-family:var(--bx-ui);font-size:.92rem;line-height:1.5;color:#4a3b10}
.bb-review-note a{color:#7a5200;text-decoration:underline}
.bb-review-h{font-family:var(--bx-display);font-size:1.35rem;margin:26px 0 10px}
.bb-review-h span{font-family:var(--bx-ui);font-size:.85rem;color:#6b7280;margin-left:6px}
.bb-review-table td small{display:block;color:#6b7280}
@media print{.bb-review-note{display:none}}

/* ---- calculators (web/inc/calculators.php) ---- */
.bb-calc { margin: 28px 0; padding: 18px 20px; border: 1px solid var(--bx-line, #ddd); border-radius: 12px; background: var(--bx-panel, #faf8f3); }
.bb-calc h2 { margin-top: 0; }
.bb-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; margin: 12px 0; }
.bb-calc-in { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.bb-calc-in input { font: inherit; padding: 8px 10px; border: 1px solid var(--bx-line, #ccc); border-radius: 8px; background: #fff; color: #111; width: 100%; box-sizing: border-box; }
.bb-calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 16px; margin: 14px 0 6px; }
.bb-calc-out div { padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--bx-line, #e3e0d8); }
.bb-calc-out dt { font-size: .85rem; opacity: .8; }
.bb-calc-out dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; }
.bb-calc-note { font-size: .82rem; opacity: .75; margin: 4px 0; }

/* ---- diagrams (web/inc/diagrams.php) ---- */
.bb-diagram { margin: 22px 0; padding: 14px; border: 1px solid var(--bx-line, #e3e0d8); border-radius: 12px; background: #fff; }
.bb-diagram svg { width: 100%; height: auto; display: block; font-family: inherit; }
.bb-diagram figcaption { font-size: .88rem; opacity: .8; margin-top: 8px; }
.bb-diagram .ax { stroke: #555; stroke-width: 2; fill: none; }
.bb-diagram .l1 { stroke: var(--c, #2f7d4f); stroke-width: 4; fill: none; }
.bb-diagram .l2 { stroke: #555; stroke-width: 4; fill: none; }
.bb-diagram .dash { stroke: #888; stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; }
.bb-diagram .dot { fill: var(--c, #2f7d4f); }
.bb-diagram .f { fill: color-mix(in srgb, var(--c, #2f7d4f) 14%, #fff); stroke: var(--c, #2f7d4f); stroke-width: 2; }
.bb-diagram .o { fill: #fff; stroke: #555; stroke-width: 2; }
.bb-diagram text { fill: #222; font-size: 14px; }
.bb-diagram .b { font-weight: 700; font-size: 16px; }
.bb-diagram .b2 { font-weight: 700; font-size: 11px; }
.bb-diagram .s { font-size: 12px; fill: #555; }
.bb-diagram .big { font-size: 34px; font-weight: 700; }

/* ---- responsive photos (bb_picture): the width/height attributes only reserve space ---- */
picture { display: block; }
.bb-card-img, .bb-hero-fig img { height: auto; }
.bb-hero-fig img { aspect-ratio: auto; }
/* BriefTravel: dated table */
.bt-dated-note{color:#5b6472;font-size:.92rem;margin:.2em 0 .8em}
.bt-dated td small{color:#6b7280}
.bt-dated td:last-child{white-space:nowrap}

/* BriefTravel: ranked company tables at the top of section pages (inc/section-tables.php) */
.bt-rank{margin:22px 0 8px}
.bt-rank h2{margin:0 0 4px}
.bt-rank-intro{margin:0 0 10px;color:var(--ink-soft,#4b5563)}
.bt-rank-group{font-size:1rem;margin:16px 0 6px}
.bt-rank-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line,#e5e7eb);border-radius:10px;background:#fff}
.bt-rank-table{border-collapse:collapse;width:100%;font-size:.9rem;line-height:1.35}
.bt-rank-table th,.bt-rank-table td{text-align:left;padding:8px 11px;border-bottom:1px solid #eef0f2;white-space:nowrap}
.bt-rank-table tbody tr:last-child th,.bt-rank-table tbody tr:last-child td{border-bottom:0}
.bt-rank-table thead th{background:#f7f8f9;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#5b6675;position:sticky;top:0}
.bt-rank-table thead button{all:unset;cursor:pointer}
.bt-rank-table thead th[aria-sort] button::after{content:" \25BE"}
.bt-rank-table thead th[aria-sort=ascending] button::after{content:" \25B4"}
.bt-rank-table tbody th{font-weight:600}
.bt-rank-table tbody th a{color:var(--bx-accent-ink,#125a78);text-decoration:underline;text-underline-offset:3px}
.bt-rank-table .num{text-align:right;font-variant-numeric:tabular-nums}
.bt-rank-table td:first-child{color:#8a93a0;width:2em}
.bt-rank-note{font-size:.82rem;color:#6b7280;margin:8px 0 0}
.bt-rank-pages{margin-top:26px}
