/* Troop 33 public site. Look matches the troop's apps: navy #02133e, off-white #f9f9f9, Lato. */
:root { --navy:#02133e; --navy-light:#0a3161; --bg:#f9f9f9; --ink:#1c1c1c; --muted:#666; --line:#e9ecef; --gold:#c9a227; --max:880px; }
* { box-sizing: border-box; }
body { margin:0; font-family:'Lato',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; background:var(--bg); color:var(--ink); line-height:1.6; font-size:17px; }
.skip { position:absolute; left:-999px; } .skip:focus { left:8px; top:8px; background:#fff; padding:8px; z-index:10; }
.masthead { background:linear-gradient(135deg,var(--navy),var(--navy-light)); padding:12px 24px; display:flex; flex-wrap:wrap; align-items:center; gap:16px; justify-content:space-between; }
.brand img { height:44px; width:auto; display:block; }
.nav { display:flex; flex-wrap:wrap; gap:6px 18px; align-items:center; }
.nav a { color:#fff; text-decoration:none; font-weight:700; font-size:15px; }
.nav a:hover, .nav a[aria-current] { text-decoration:underline; text-underline-offset:4px; }
.nav .btn { background:var(--gold); color:var(--navy); padding:6px 16px; border-radius:6px; }
.nav .apps { font-weight:400; opacity:.85; border:1px solid rgba(255,255,255,.4); padding:5px 12px; border-radius:6px; }
/* nav dropdowns: the section links come from the same childrenOf lookup as "In this section"; nav.js adds the caret button */
.nav-item { position:relative; display:flex; align-items:center; gap:2px; }
.nav-toggle { background:none; border:0; cursor:pointer; padding:8px 7px; line-height:1; border-radius:4px; }
.nav-toggle:hover { background:rgba(255,255,255,.18); }
.nav-toggle:focus-visible, .nav-menu a:focus-visible { outline:2px solid var(--gold); outline-offset:1px; }
.nav-toggle span { display:block; width:6px; height:6px; margin:-3px 2px 0; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); transition:transform .15s; }
.nav-toggle[aria-expanded="true"] span { margin-top:3px; transform:rotate(-135deg); }
.nav-menu { display:none; position:absolute; top:100%; left:0; z-index:20; margin:6px 0 0; padding:6px 0; list-style:none; min-width:240px; background:#fff; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.nav-item.open .nav-menu { display:block; }
.nav .nav-menu a { display:block; color:var(--navy); font-weight:400; font-size:15px; padding:8px 16px; }
.nav .nav-menu a:hover, .nav .nav-menu a:focus-visible { background:var(--bg); text-decoration:underline; text-underline-offset:3px; }
.nav .nav-menu a[aria-current] { font-weight:700; }
@media (max-width:640px) { .nav-item { flex-wrap:wrap; } .nav-menu { position:static; width:100%; margin:4px 0 6px; box-shadow:none; } }
.search { flex-basis:100%; max-width:340px; margin-left:auto; --pagefind-ui-scale:.8; --pagefind-ui-primary:var(--navy); }
.search .pagefind-ui__drawer { position:absolute; z-index:5; background:#fff; padding:12px; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.25); max-width:420px; }
.draft-banner { background:#fff3cd; color:#664d03; padding:8px 24px; text-align:center; font-size:14px; }
.page { max-width:var(--max); margin:28px auto; padding:32px 36px; background:#fff; border-radius:12px; box-shadow:0 8px 30px rgba(0,0,0,.08); }
.page h1 { color:var(--navy); font-size:2rem; line-height:1.2; margin-top:0; }
.page h2 { color:var(--navy); margin-top:2rem; border-bottom:2px solid var(--line); padding-bottom:4px; }
.page h3 { color:var(--navy-light); }
.page a { color:#0a3161; } .page a:hover { color:var(--navy); }
.page table { border-collapse:collapse; width:100%; font-size:15px; } .page th, .page td { border-bottom:1px solid var(--line); padding:6px 10px; text-align:left; } .page th { background:#f1f3f7; }
.page img { max-width:100%; height:auto; }
.shortlink { font-size:14px; color:var(--muted); margin:0 0 12px; } .shortlink strong { font-weight:700; }
.crumbs { font-size:14px; color:var(--muted); margin-bottom:12px; } .crumbs a { color:var(--muted); }
.related { margin-top:2.5rem; padding:16px 20px; background:#f1f3f7; border-radius:8px; } .related h2 { border:0; margin:0 0 8px; font-size:1.1rem; }
.footer { text-align:center; font-size:13px; color:var(--muted); padding:8px 16px 32px; } .footer a { color:var(--muted); }
/* contact form */
.contact-form { display:grid; gap:14px; max-width:560px; margin:1rem 0 1.5rem; }
.contact-form label { font-weight:700; display:grid; gap:4px; font-size:15px; }
.contact-form input, .contact-form select, .contact-form textarea { font:inherit; padding:9px 10px; border:1px solid #bbb; border-radius:6px; }
.contact-form button:disabled { opacity:.7; cursor:wait; } .contact-form button { background:var(--navy); color:#fff; border:0; padding:11px 22px; border-radius:6px; font:inherit; font-weight:700; cursor:pointer; justify-self:start; }
.contact-form .hp { position:absolute; left:-9999px; }
.form-status { padding:10px 14px; border-radius:6px; display:none; } .form-status.info { display:block; background:#e7f1ff; } .form-status.ok { display:block; background:#d1e7dd; } .form-status.err { display:block; background:#f8d7da; }
@media (max-width:640px) { .page { margin:12px; padding:20px; } body { font-size:16px; } }
@media print {
  body { background:#fff; font-size:12pt; } .masthead, .search, .draft-banner, .crumbs, .related, .footer, .skip { display:none !important; }
  .page { box-shadow:none; margin:0; padding:0; max-width:none; border-radius:0; }
  a { color:inherit; text-decoration:none; } .page h2 { break-after:avoid; } .page li, .page table tr { break-inside:avoid; }
  input[type=checkbox] { -webkit-print-color-adjust:exact; }
}
/* photos */
.page figure { margin:1.2rem 0; } .page .hero img { width:100%; border-radius:10px; display:block; }
.page .photo img { width:100%; max-width:560px; border-radius:10px; display:block; }
.page .photo-right { float:right; width:36%; margin:.2rem 0 1rem 1.4rem; } .page .photo-right img { width:100%; border-radius:10px; display:block; }
.gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; margin:1.2rem 0; }
.gallery img { width:100%; height:200px; object-fit:cover; border-radius:10px; }
.page h2 { clear:both; }
@media (max-width:640px) { .page .photo-right { float:none; width:100%; margin:1rem 0; } }

.calendar-embed { margin:1rem 0; } .calendar-embed iframe { width:100%; height:640px; border:1px solid var(--line); border-radius:10px; background:#fff; }
@media (max-width:640px) { .calendar-embed iframe { height:520px; } }
@media print { .calendar-embed { display:none; } }

.sheet-embed { margin:1rem 0; } .sheet-embed iframe { width:100%; height:560px; border:1px solid var(--line); border-radius:10px; background:#fff; } .sheet-embed.short iframe { height:380px; }
@media (max-width:640px) { .sheet-embed iframe { height:480px; } }
@media print { .sheet-embed { display:none; } }

.doc-embed { margin:1rem 0; } .doc-embed iframe { width:100%; height:820px; border:1px solid var(--line); border-radius:10px; background:#fff; }
@media (max-width:640px) { .doc-embed iframe { height:620px; } }
@media print { .doc-embed { display:none; } }

.gallery.portrait { grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); max-width:640px; } .gallery.portrait img { height:auto; aspect-ratio:4/5; }

/* uniform items */
.items { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:12px; margin:1.2rem 0; }
.items figure { margin:0; text-align:center; } .items img { width:100%; height:130px; object-fit:contain; background:#fff; border:1px solid var(--line); border-radius:10px; padding:6px; }
.items figcaption, .diagrams figcaption { font-size:13px; color:var(--muted); margin-top:4px; }
.diagrams { display:flex; gap:18px; flex-wrap:wrap; align-items:flex-start; margin:1rem 0; } .diagrams figure { margin:0; text-align:center; flex:1 1 240px; max-width:340px; } .diagrams img { width:100%; height:auto; border:1px solid var(--line); border-radius:8px; background:#fff; }
.page .photo-right.small { width:150px; } .page .photo-right.small img { border-radius:8px; }
