/* Drone section layout (menu items with layout = drone). Tokens fall back to the site's brand colours. */
.drn { --drn-blue: var(--primary-color, #0083ca); --drn-blue-dark: #00527f; --drn-orange: var(--secondary-color, #f36f21); --drn-ink: #1a2a32; --drn-muted: #5f6b73; --drn-line: #e3e8ec; --drn-soft: #f4f8fb; color: var(--drn-ink); }
.drn section { scroll-margin-top: 140px; }
.drn-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--drn-blue); }
.drn-h2 { font-weight: 800; font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: .5rem; }
.drn-lead { color: var(--drn-muted); max-width: 680px; }

/* Hero */
.drn-hero {
    color: #fff; padding: 72px 0 96px; position: relative; overflow: hidden;
    background:
        radial-gradient(45% 70% at 22% 45%, rgba(77,196,255,.38) 0%, rgba(77,196,255,0) 70%),
        radial-gradient(40% 55% at 100% 105%, rgba(243,111,33,.38) 0%, rgba(243,111,33,0) 70%),
        linear-gradient(135deg, #032c47 0%, #00578a 45%, #0083ca 100%);
}
.drn-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 45%, transparent 100%);
}
.drn-hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 440px; height: 440px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 50px rgba(255,255,255,.03), 0 0 0 100px rgba(255,255,255,.02); pointer-events: none; }
.drn-hero h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; max-width: 720px; }
.drn-hero p { font-size: 1.1rem; opacity: .9; max-width: 620px; }
.drn-hero .drn-eyebrow { color: rgba(255, 255, 255, .8); }
.drn-hero-art { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.drn-hero-art .drn-drone { animation: drn-hover 3.2s ease-in-out infinite; }
.drn-hero-art .drn-prop { transform-box: fill-box; transform-origin: center; animation: drn-spin .25s linear infinite alternate; }
.drn-hero-art .drn-wave { animation: drn-pulse 2s ease-in-out infinite; }
.drn-hero-art .drn-wave:nth-child(2) { animation-delay: .3s; }
.drn-hero-art .drn-wave:nth-child(3) { animation-delay: .6s; }
@keyframes drn-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drn-spin { from { transform: scaleX(1); } to { transform: scaleX(.35); } }
@keyframes drn-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .drn-hero-art .drn-drone, .drn-hero-art .drn-prop, .drn-hero-art .drn-wave { animation: none; }
}
.drn-btn { border-radius: 999px; padding: .7rem 1.5rem; font-weight: 600; }
.drn-btn-orange { background: var(--drn-orange); color: #fff; border: 0; }
.drn-btn-orange:hover { background: #d95c12; color: #fff; }
.drn-btn-ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.drn-btn-ghost:hover { background: #fff; color: var(--drn-blue-dark); }

/* Jump nav */
.drn-jump { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--drn-line); margin-top: -40px; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.drn-jump ul { display: flex; gap: .25rem; overflow-x: auto; margin: 0; padding: .5rem; list-style: none; scrollbar-width: none; }
.drn-jump a { display: block; white-space: nowrap; padding: .55rem 1rem; border-radius: 999px; color: var(--drn-ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.drn-jump a:hover { background: var(--drn-soft); color: var(--drn-blue); }

/* Audience selector */
.drn-aud .nav-link { width: 100%; height: 100%; text-align: left; background: #fff; border: 2px solid var(--drn-line); border-radius: 16px; padding: 1.25rem; color: var(--drn-ink); transition: border-color .15s, box-shadow .15s; }
.drn-aud .nav-link:hover { border-color: var(--drn-blue); }
.drn-aud .nav-link.active { border-color: var(--drn-blue); background: var(--drn-soft); box-shadow: 0 8px 24px rgba(0,131,202,.15); color: var(--drn-ink); }
.drn-aud .nav-link i { font-size: 1.8rem; color: var(--drn-blue); }
.drn-aud .nav-link strong { display: block; font-size: 1.1rem; margin: .5rem 0 .2rem; }
.drn-aud .nav-link span { color: var(--drn-muted); font-size: .9rem; }
.drn-panel { background: var(--drn-soft); border-radius: 16px; padding: 2rem; }
.drn-check { list-style: none; padding: 0; margin: 0; }
.drn-check li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.drn-check li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: -1px; color: var(--accent-color, #219c67); font-size: 1.2rem; }

/* Steps */
.drn-steps { counter-reset: step; }
.drn-step { position: relative; padding: 1.5rem; background: #fff; border: 1px solid var(--drn-line); border-radius: 16px; height: 100%; }
.drn-step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--drn-blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
@media (min-width: 992px) {
    .drn-step::after { content: "\F285"; font-family: "bootstrap-icons"; position: absolute; right: -22px; top: 32px; color: var(--drn-blue); font-size: 1.2rem; }
    .drn-steps > div:last-child .drn-step::after { display: none; }
}

/* Safety rules */
.drn-rule { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: 14px; padding: 1.1rem 1.2rem; height: 100%; border: 1px solid var(--drn-line); }
.drn-rule-icon { flex: 0 0 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: #fff1e8; color: var(--drn-orange); }
.drn-rule h6 { font-weight: 700; margin-bottom: .2rem; }
.drn-rule p { margin: 0; color: var(--drn-muted); font-size: .92rem; }
.drn-band { background: var(--drn-soft); }

/* Topic cards */
.drn-topic { display: block; height: 100%; padding: 1.5rem; border-radius: 16px; border: 1px solid var(--drn-line); background: #fff; color: var(--drn-ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.drn-topic:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); color: var(--drn-ink); }
.drn-topic i.drn-topic-icon { font-size: 1.6rem; color: var(--drn-blue); }
.drn-topic h5 { font-weight: 700; margin: .75rem 0 .35rem; font-size: 1.1rem; }
.drn-topic p { color: var(--drn-muted); font-size: .92rem; margin-bottom: .75rem; }
.drn-topic .drn-more { color: var(--drn-blue); font-weight: 600; font-size: .9rem; }

/* FAQ */
.drn-faq .accordion-item { border: 1px solid var(--drn-line); border-radius: 12px !important; margin-bottom: .75rem; overflow: hidden; }
.drn-faq .accordion-button { font-weight: 600; }
.drn-faq .accordion-button:not(.collapsed) { background: var(--drn-soft); color: var(--drn-blue-dark); box-shadow: none; }

/* Contact */
.drn-contact { background: var(--drn-ink); color: #fff; border-radius: 20px; padding: 2.5rem; }
.drn-contact a { color: #fff; }

/* Group headers */
.drn-group-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.drn-group-num { flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--drn-blue); color: #fff; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.drn-sub { font-weight: 700; font-size: 1.15rem; margin: 2.5rem 0 1rem; }

/* "Go to" links inside audience panels */
.drn-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.drn-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--drn-line); color: var(--drn-ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.drn-chip:hover { border-color: var(--drn-blue); color: var(--drn-blue); }

/* Approval topics (accordion) */
.drn-topics .accordion-button { gap: .9rem; }
.drn-topics .accordion-button i { font-size: 1.3rem; color: var(--drn-blue); }
.drn-topics .accordion-button small { display: block; font-weight: 400; color: var(--drn-muted); font-size: .88rem; }
.drn-topics .accordion-item { scroll-margin-top: 140px; }

/* Where you can fly */
.drn-zone { background: #fff; border: 1px solid var(--drn-line); border-radius: 16px; padding: 1.5rem; height: 100%; }
.drn-zone h6 { font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.drn-zone ul { margin: 0; padding-left: 1.1rem; color: var(--drn-muted); }
.drn-zone ul li { margin-bottom: .35rem; }
.drn-zone--no h6 i { color: #d63939; }
.drn-zone--ok h6 i { color: var(--accent-color, #219c67); }

/* Regulations & registers */
.drn-reg { background: var(--drn-soft); border-radius: 16px; padding: 1.5rem; }
.drn-reg-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: .75rem; background: #fff; border: 1px solid var(--drn-line); border-radius: 12px; color: var(--drn-ink); text-decoration: none; }
.drn-reg-item:last-child { margin-bottom: 0; }
.drn-reg-item:hover { border-color: var(--drn-blue); color: var(--drn-ink); }
.drn-reg-item strong { display: block; font-size: .98rem; }
.drn-reg-item small { display: block; color: var(--drn-muted); margin-top: .2rem; }
.drn-reg-item > i { font-size: 1.4rem; color: var(--drn-blue); }
.drn-reg-item--featured { border-left: 4px solid var(--drn-blue); }
.drn-abbr { font-size: .75rem; font-weight: 800; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 6px; background: var(--drn-soft); color: var(--drn-blue-dark); }

/* Content background: faint drone pattern behind everything below the hero */
.drn {
    background-color: #f2f7fb;
    background-image: url('../images/drone-pattern.svg');
    background-size: 320px 320px;
    background-repeat: repeat;
    padding-bottom: 1px;
}
.drn-hero { box-shadow: 0 10px 30px rgba(0,82,127,.15); }

/* Light-blue band lets the pattern show through */
.drn-band {
    background: linear-gradient(180deg, rgba(0,131,202,.07), rgba(0,131,202,.03));
    border-top: 1px solid rgba(0,131,202,.08);
    border-bottom: 1px solid rgba(0,131,202,.08);
}

/* Cards float on the pattern: white, soft shadow */
.drn-panel, .drn-reg { background: #fff; border: 1px solid var(--drn-line); box-shadow: 0 10px 30px rgba(16,42,67,.06); }
.drn-step, .drn-rule, .drn-topic, .drn-zone, .drn-aud .nav-link { box-shadow: 0 4px 14px rgba(16,42,67,.05); }
.drn-aud .nav-link.active { background: #fff; }
.drn-faq .accordion-item { box-shadow: 0 4px 14px rgba(16,42,67,.04); }
.drn-reg-item { background: var(--drn-soft); }
.drn-reg-item:hover { background: #fff; }

/* ---------- Orange accents ----------
   Blue stays the base; orange marks "where you are" and "what to act on". */
.drn { --drn-orange-soft: #fff3eb; --drn-orange-glow: rgba(243,111,33,.28); }

/* Jump nav: orange hover, orange pill for the section in view */
.drn-jump a { transition: background .15s, color .15s, box-shadow .15s; }
.drn-jump a:hover { background: var(--drn-orange-soft); color: var(--drn-orange); }
.drn-jump a.is-active { background: var(--drn-orange); color: #fff; box-shadow: 0 6px 16px var(--drn-orange-glow); }

/* Group numbers 1-4 */
.drn-group-num { background: linear-gradient(145deg, #ff8a3d 0%, #f36f21 55%, #d4520b 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px var(--drn-orange-glow); }

/* Selectable cards (who are you / regulations, ATO, AMO): selected = orange */
.drn-aud .nav-link { position: relative; }
.drn-aud .nav-link:hover { border-color: rgba(243,111,33,.5); }
.drn-aud .nav-link.active { border-color: var(--drn-orange); box-shadow: 0 10px 26px rgba(243,111,33,.18); }
.drn-aud .nav-link.active i { color: var(--drn-orange); }
.drn-aud .nav-link.active::after {
    content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; top: 12px; right: 12px;
    width: 26px; height: 26px; border-radius: 50%; background: var(--drn-orange); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}

/* Link cards: orange bar slides in on hover */
.drn-topic { position: relative; overflow: hidden; }
.drn-topic::before {
    content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background: linear-gradient(90deg, var(--drn-blue) 0%, var(--drn-orange) 100%);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.drn-topic:hover { border-color: rgba(243,111,33,.35); }
.drn-topic:hover::before { transform: scaleX(1); }
.drn-topic:hover .drn-more, .drn-topic:hover i.drn-topic-icon { color: var(--drn-orange); }

/* Steps: orange arrows between cards */
.drn-step::after { color: var(--drn-orange); }

/* "Read more" chips */
.drn-chip:hover { border-color: var(--drn-orange); color: var(--drn-orange); background: var(--drn-orange-soft); }

/* Main regulation */
.drn-reg-item--featured { border-left-color: var(--drn-orange); background: #fff; }


/* Open accordion items: orange edge */
.drn-faq .accordion-item:has(.accordion-button:not(.collapsed)) { border-left: 4px solid var(--drn-orange); }

/* Contact band: orange glow */
.drn-contact { position: relative; overflow: hidden; }
.drn-contact::before {
    content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(243,111,33,.45), rgba(243,111,33,0) 70%);
}
.drn-contact > * { position: relative; }

/* CASP portal */
.drn-hero-note { font-size: .95rem; opacity: .9; }
.drn-hero-note a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sub-site navigation ---------- */
.drn-jump a i { margin-right: .35rem; }
.drn-jump .drn-jump-home { color: var(--drn-blue); }

/* Compact hero for sub-pages */
.drn-hero--compact { padding: 36px 0 76px; }
.drn-hero--compact h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.drn-hero h1 { color: #ff8a3d; text-shadow: 0 2px 14px rgba(3,44,71,.45); } /* lighter brand orange stays readable on the blue */
.drn-hero--compact .drn-hero-art { max-width: 220px; margin: -12px auto; }
.drn-hero--compact .breadcrumb-item, .drn-hero--compact .breadcrumb-item a { color: rgba(255,255,255,.85); text-decoration: none; }
.drn-hero--compact .breadcrumb-item a:hover { color: #fff; }
.drn-hero--compact .breadcrumb-item.active { color: #fff; }
.drn-hero--compact .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.55); }

/* ---------- Overview cards ---------- */
.drn-group-label { margin-bottom: 1.25rem; }
.drn-group-label h2 { font-weight: 800; font-size: 1.3rem; margin: 0 0 .25rem; display: flex; align-items: center; gap: .75rem; }
.drn-group-label h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--drn-line), transparent); }
.drn-group-label p { color: var(--drn-muted); margin: 0; }

.drn-card {
    position: relative; display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.1rem 1.25rem;
    background: #fff; border: 1px solid var(--drn-line); border-radius: 18px; color: var(--drn-ink); text-decoration: none;
    box-shadow: 0 4px 14px rgba(16,42,67,.05); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.drn-card:hover { transform: translateY(-3px); border-color: rgba(243,111,33,.4); box-shadow: 0 14px 30px rgba(16,42,67,.1); color: var(--drn-ink); }
.drn-card-icon {
    flex: 0 0 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--drn-blue); background: rgba(0,131,202,.09); transition: background .2s, color .2s, box-shadow .2s;
}
.drn-card:hover .drn-card-icon {
    color: #fff; background: linear-gradient(145deg, #ff8a3d 0%, #f36f21 55%, #d4520b 100%);
    box-shadow: 0 8px 18px var(--drn-orange-glow);
}
.drn-card-body { flex: 1; min-width: 0; }
.drn-card h3 { font-weight: 700; font-size: 1.05rem; margin: 0 0 .15rem; }
.drn-card-fact { display: block; color: var(--drn-muted); font-size: .85rem; font-weight: 600; }
.drn-card-arrow {
    flex: 0 0 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--drn-line); color: var(--drn-blue); transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.drn-card:hover .drn-card-arrow { background: var(--drn-orange); border-color: var(--drn-orange); color: #fff; transform: translateX(3px); }

/* Feature variant ("Start here") */
.drn-card--feature { align-items: flex-start; gap: 1.4rem; padding: 1.75rem; overflow: hidden; }
.drn-card--feature::after {
    content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,131,202,.08), rgba(0,131,202,0) 70%); pointer-events: none; transition: background .2s;
}
.drn-card--feature:hover::after { background: radial-gradient(circle, rgba(243,111,33,.12), rgba(243,111,33,0) 70%); }
.drn-card--feature .drn-card-icon {
    flex-basis: 64px; height: 64px; border-radius: 18px; font-size: 1.8rem; color: #fff;
    background: linear-gradient(145deg, #1aa3e8 0%, var(--drn-blue) 55%, var(--drn-blue-dark) 100%);
    box-shadow: 0 8px 18px rgba(0,131,202,.25);
}
.drn-card--feature h3 { font-size: 1.35rem; font-weight: 800; margin: .35rem 0 .4rem; }
.drn-card--feature p { color: var(--drn-muted); margin-bottom: 1rem; }
.drn-card--feature .drn-card-fact {
    display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: var(--drn-soft);
    color: var(--drn-blue-dark); font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.drn-card-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--drn-blue); transition: color .2s, gap .2s; }
.drn-card--feature:hover .drn-card-cta { color: var(--drn-orange); gap: .65rem; }
@media (max-width: 575.98px) { .drn-card--feature { flex-direction: column; gap: 1rem; padding: 1.4rem; } }

/* Previous / next */
.drn-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.drn-pager a {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: 16px; background: #fff;
    border: 1px solid var(--drn-line); color: var(--drn-ink); text-decoration: none; box-shadow: 0 4px 14px rgba(16,42,67,.05);
    transition: border-color .15s, color .15s;
}
.drn-pager a:hover { border-color: var(--drn-orange); color: var(--drn-orange); }
.drn-pager a.drn-pager-next { grid-column: 2; justify-content: flex-end; text-align: right; }
.drn-pager small { display: block; color: var(--drn-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.drn-pager strong { font-size: 1.05rem; }
.drn-pager i { font-size: 1.3rem; }
@media (max-width: 575.98px) { .drn-pager { grid-template-columns: 1fr; } .drn-pager a.drn-pager-next { grid-column: 1; } }

/* ---------- Menu-driven sections ---------- */
.drn-card-list { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.drn-card-list a { position: relative; z-index: 1; }
.drn-group { background: #fff; border: 1px solid var(--drn-line); border-radius: 18px; padding: 1.4rem 1.5rem; height: 100%; box-shadow: 0 4px 14px rgba(16,42,67,.05); }
.drn-group h3 { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.drn-group h3 a { color: var(--drn-ink); text-decoration: none; }
.drn-group h3 a:hover { color: var(--drn-orange); }
.drn-group ul { list-style: none; padding: 0; margin: 0; }
.drn-group li a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .2rem; border-top: 1px solid var(--drn-line); color: var(--drn-ink); text-decoration: none; font-weight: 500; }
.drn-group li:first-child a { border-top: 0; }
.drn-group li a:hover { color: var(--drn-orange); }
.drn-page { background: #fff; border: 1px solid var(--drn-line); border-radius: 18px; padding: 2rem; box-shadow: 0 10px 30px rgba(16,42,67,.06); }
.drn-page img { max-width: 100%; height: auto; }
.drn-side { background: #fff; border: 1px solid var(--drn-line); border-radius: 18px; padding: 1.25rem; box-shadow: 0 4px 14px rgba(16,42,67,.05); position: sticky; top: 90px; }
.drn-side h2 { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--drn-muted); margin-bottom: .75rem; }
.drn-side ul { list-style: none; padding: 0; margin: 0; }
.drn-side a { display: block; padding: .5rem .75rem; border-radius: 10px; color: var(--drn-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.drn-side a:hover { background: var(--drn-orange-soft); color: var(--drn-orange); }
.drn-side a.is-active { background: var(--drn-orange); color: #fff; }
.drn-empty { background: #fff; border: 1px dashed var(--drn-line); border-radius: 18px; padding: 3rem 1rem; text-align: center; color: var(--drn-muted); }

/* Default-layout section home page */
.section-home--hero { margin-top: -40px; position: relative; z-index: 1; }
.section-home .section-card { display: block; height: 100%; background: #fff; border: 1px solid #e3e8ec; border-radius: 14px; padding: 1.25rem 1.4rem; color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.section-home .section-card:hover { border-color: var(--primary-color, #0083ca); box-shadow: 0 10px 24px rgba(16,42,67,.08); }
.section-home .section-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.section-home .section-card ul { list-style: none; padding: 0; margin: 0; }
.section-home .section-card li a { display: block; padding: .3rem 0; color: #5f6b73; text-decoration: none; }
.section-home .section-card li a:hover { color: var(--primary-color, #0083ca); }

/* "Overview" link in main-nav mega menus */
.mega-menu-overview { font-size: .9rem; text-decoration: none; color: var(--secondary-color, #f36f21); white-space: nowrap; }
.mega-menu-overview:hover { text-decoration: underline; }

/* ---------- Drone landing page (sections/drone/home) ---------- */
.dl { --dl-navy: #0b2f6b; --dl-blue: #0d47a1; --dl-orange: var(--secondary-color, #f36f21); --dl-ink: #1a2a32; --dl-muted: #5f6b73; --dl-line: #dfe6ee; background: #f5f8fc; padding-bottom: 0; color: var(--dl-ink); }

.dl-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 48px 0 64px; min-height: 340px; background: #0b2f6b; }
/* Stack: photos (crossfading) → blue shade → corner slashes → text. */
.dl-hero-slides, .dl-hero-slide, .dl-hero-shade { position: absolute; inset: 0; }
.dl-hero-slides { z-index: 0; }
.dl-hero-slide { background: center 40% / cover no-repeat; opacity: 0; transition: opacity 1.4s ease-in-out; }
.dl-hero-slide.is-active { opacity: 1; }
.dl-hero-shade { z-index: 0; background: linear-gradient(90deg, rgba(6,32,77,.94) 0%, rgba(8,45,102,.82) 38%, rgba(8,45,102,.25) 70%, rgba(8,45,102,0) 100%); }
.dl-hero > .container-lg { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .dl-hero-slide { transition: none; } }
/* Orange and blue slashes, bottom-right corner */
.dl-hero::before, .dl-hero::after { content: ""; position: absolute; right: 0; bottom: 0; pointer-events: none; z-index: 1; }
.dl-hero::before { width: 210px; height: 190px; background: linear-gradient(135deg, transparent 50%, var(--dl-orange) 50%); }
.dl-hero::after { width: 150px; height: 230px; background: linear-gradient(140deg, transparent 58%, #0d47a1 58%); opacity: .95; }
.dl-hero .breadcrumb-item, .dl-hero .breadcrumb-item a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; }
.dl-hero .breadcrumb-item.active { color: #fff; }
.dl-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.55); }
.dl-hero-title { font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; margin: 0; max-width: 720px; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.dl-hero-tagline { color: #ff8a3d; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.15; margin: .25rem 0 1rem; max-width: 720px; }
.dl-hero-lead { font-size: 1.1rem; max-width: 560px; opacity: .95; margin: 0; }

.dl-notice { display: flex; align-items: center; gap: .9rem; margin: 1.5rem 0 .5rem; padding: .8rem 1.1rem; background: #fff8ec; border: 1px solid #f6d9a8; border-radius: 6px; font-size: .95rem; }
.dl-notice-icon { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--dl-orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.dl-block { margin-top: 2rem; }
.dl-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dl-block-head h2 { color: var(--dl-navy); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 0; }
.dl-view-all { color: var(--dl-blue); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.dl-view-all:hover { color: var(--dl-orange); }
.dl-card-title { color: var(--dl-navy); font-weight: 700; font-size: 1.08rem; line-height: 1.3; }

@media (max-width: 575.98px) {
    .dl-hero { padding: 32px 0 56px; }
    .dl-hero::before { width: 120px; height: 110px; }
    .dl-hero::after { width: 80px; height: 130px; }
    .dl-notice { align-items: flex-start; }
}

/* The site stylesheet styles p, a and breadcrumbs globally; keep the landing page's own colours. */
.dl .dl-notice, .dl .dl-notice p, .dl .dl-notice strong { color: var(--dl-ink); }
.dl .dl-notice strong { color: var(--dl-navy); }
.dl .dl-hero .breadcrumb-item.active { color: #fff; }
.dl .dl-hero .breadcrumb-item a { color: rgba(255,255,255,.85); }
.dl .dl-view-all { color: var(--dl-blue); }
.dl .dl-view-all:hover { color: var(--dl-orange); }
.dl .dl-hero-lead { color: #fff; }

/* ---------- Site dark theme (body[ega-theme="darks"]) ---------- */
/* The dark theme forces breadcrumbs yellow with !important; heroes keep white crumbs. */
body[ega-theme="darks"] .dl-hero .breadcrumb .breadcrumb-item,
body[ega-theme="darks"] .dl-hero .breadcrumb .breadcrumb-item a,
body[ega-theme="darks"] .drn-hero .breadcrumb .breadcrumb-item,
body[ega-theme="darks"] .drn-hero .breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.85) !important; }
body[ega-theme="darks"] .dl-hero .breadcrumb .breadcrumb-item.active,
body[ega-theme="darks"] .drn-hero .breadcrumb .breadcrumb-item.active { color: #fff !important; }

body[ega-theme="darks"] .dl { --dl-navy: #eef3f8; --dl-blue: #7cc0ff; --dl-ink: #dfe5ea; --dl-muted: #a9b4bc; --dl-line: rgba(255,255,255,.12); background: transparent; }
body[ega-theme="darks"] .dl .dl-notice { background: rgba(243,111,33,.12); border-color: rgba(243,111,33,.4); }
body[ega-theme="darks"] .dl .dl-notice strong { color: #ffd59a; }

body[ega-theme="darks"] .section-home .section-card,
body[ega-theme="darks"] .drn-empty { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #dfe5ea; }
body[ega-theme="darks"] .section-home .section-card h3 { color: #eef3f8; }
body[ega-theme="darks"] .section-home .section-card li a { color: #a9b4bc; }

/* Hero height: taller now that the drone pages have no main site header above them, so more of the photo shows.
   Text stays vertically centred. */
.dl .dl-hero { padding: 36px 0 44px; min-height: 300px; display: flex; align-items: center; }
.dl .dl-hero > .container-lg { width: 100%; }
.dl .dl-hero .breadcrumb { margin-bottom: .6rem !important; }
.dl .dl-hero-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.dl .dl-hero-tagline { font-size: clamp(1.1rem, 2vw, 1.45rem); margin: .1rem 0 .5rem; }
.dl .dl-hero-lead { font-size: 1rem; max-width: 640px; }
.dl .dl-hero-title + .dl-hero-lead { margin-top: .75rem; font-size: 1.1rem; } /* content pages: description right under the title */
.dl .dl-hero::before { width: 150px; height: 130px; }
.dl .dl-hero::after { width: 105px; height: 160px; }
@media (max-width: 575.98px) {
    .dl .dl-hero { padding: 26px 0 34px; min-height: 210px; }
    .dl .dl-hero-lead { font-size: .92rem; }
    .dl .dl-hero::before { width: 90px; height: 80px; }
    .dl .dl-hero::after { width: 60px; height: 100px; }
}

/* ---------- Drone landing: casa.gov.au-style layout (no photos below the hero) ---------- */

/* "Information about": grey band with a 3-column card grid */
.dl .dl-info { background: #f2f3f5; padding: 2.75rem 0 3.5rem; }
.dl-info-title { color: var(--dl-ink); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 1.75rem; }
.dl-info-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; aspect-ratio: 1 / 1; padding: 8px; border-radius: 20px; overflow: hidden; isolation: isolate; text-decoration: none; color: #fff; background: #0b1620; box-shadow: 0 14px 32px rgba(16,42,67,.18); transition: transform .25s ease, box-shadow .25s ease; }
.dl-info-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(16,42,67,.26); color: #fff; }
.dl-info-card:focus-visible { outline: 3px solid var(--dl-orange); outline-offset: 3px; }
/* Photo fills the card; a dark fade from the bottom keeps the text readable on any picture. */
.dl-info-card-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dl-info-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.92) 100%); }
.dl-info-card:hover .dl-info-card-img { transform: scale(1.05); }
.dl-info-card.is-placeholder { background: linear-gradient(160deg, #0d47a1 0%, #0b2f6b 55%, #071a3a 100%); }
.dl-info-card-icon { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-size: 2.25rem; color: rgba(255,255,255,.3); }
.dl-info-card-body { display: block; padding: 0 .9rem; }
.dl .dl-info-card-title { color: #fff; font-weight: 800; font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.15; letter-spacing: -.01em; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.dl-info-card-title i { font-size: 1rem; margin-left: .35rem; opacity: .7; }
.dl-info-card-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: .4rem; color: rgba(255,255,255,.7); font-size: .82rem; line-height: 1.4; }
.dl-info-card-btn { display: block; margin: .8rem -.9rem 0; padding: .6rem .75rem; border-radius: 14px; background: #f2f2f2; color: #1a1a1a; font-weight: 700; font-size: .85rem; text-align: center; transition: background .2s, color .2s; }
.dl-info-card:hover .dl-info-card-btn { background: var(--dl-orange); color: #fff; }
@media (prefers-reduced-motion: reduce) { .dl-info-card, .dl-info-card-img { transition: none; } .dl-info-card:hover, .dl-info-card:hover .dl-info-card-img { transform: none; } }
body[ega-theme="darks"] .dl .dl-info-card-title { color: #fff !important; }
body[ega-theme="darks"] .dl .dl-info-card-text { color: rgba(255,255,255,.7) !important; }
/* Image: always 12:5 (uploads are cropped to 1200×500, see App\Support\CardImage), navy bar beneath as on casa.gov.au */
/* Short description: grey, at most three lines so cards stay even */

body[ega-theme="darks"] .dl .dl-info { background: rgba(0,0,0,.12); }

/* Shared drone hero and content page (ported from drones2) */
.dl-hero-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: .35rem; }
.dl .dl-hero--tabs { padding-bottom: 72px; } /* room for the tab bar that overlaps the hero's bottom edge */
.dl .dl-hero .breadcrumb-item, .dl .dl-hero .breadcrumb-item a { text-transform: none; font-weight: 600; }
.dl-updated { margin: 1.75rem 0 0; color: #5f6b73; font-size: .88rem; }
.drn-side-static { display: block; padding: .5rem .75rem; color: #8a959d; font-weight: 600; font-size: .95rem; }
body[ega-theme="darks"] .dl-updated { color: #a9b4bc; }


/* ---------- Drone pages in the site dark theme (body[ega-theme="darks"]) ----------
   Same palette as the rest of the site (style.css: --black / --black-050, slate panels). */
body[ega-theme="darks"] .drn {
    --drn-ink: #e6edf2; --drn-muted: #a9b4bc; --drn-line: rgba(255,255,255,.12); --drn-soft: rgba(255,255,255,.06);
    --drn-orange-soft: rgba(243,111,33,.16);
    background-color: var(--black-050, #32424a) !important;
    color: var(--drn-ink);
}
body[ega-theme="darks"] .drn .container-lg { background: transparent !important; }
body[ega-theme="darks"] .drn-page,
body[ega-theme="darks"] .drn-side,
body[ega-theme="darks"] .drn-topic,
body[ega-theme="darks"] .drn-pager a,
body[ega-theme="darks"] .drn-step,
body[ega-theme="darks"] .drn-zone,
body[ega-theme="darks"] .drn-rule {
    background: var(--black, #263238) !important;
    border-color: rgba(255,255,255,.1) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.25) !important;
    color: var(--drn-ink) !important;
}
body[ega-theme="darks"] .drn-side h2,
body[ega-theme="darks"] .drn-side h2 a { color: #a9b4bc !important; }
body[ega-theme="darks"] .drn-side a { color: #e6edf2 !important; }
body[ega-theme="darks"] .drn-side a:hover { background: rgba(243,111,33,.16) !important; color: var(--drn-orange) !important; }
body[ega-theme="darks"] .drn-side a.is-active { background: var(--drn-orange) !important; color: #fff !important; }
body[ega-theme="darks"] .drn-side-static { color: #7d8a93 !important; }
/* Page body from the CMS editor: light text, readable links, no white boxes pasted in with the content. */
body[ega-theme="darks"] .drn-page .rich-text,
body[ega-theme="darks"] .drn-page .rich-text :is(p, li, td, th, span, div, h1, h2, h3, h4, h5, h6, strong, em, blockquote) {
    color: #e6edf2 !important;
    background-color: transparent !important;
}
body[ega-theme="darks"] .drn-page .rich-text a { color: #7cc0ff !important; }
body[ega-theme="darks"] .drn-page .rich-text :is(table, td, th) { border-color: rgba(255,255,255,.15) !important; }
body[ega-theme="darks"] .drn-page .dl-updated { color: #a9b4bc !important; border-color: rgba(255,255,255,.12) !important; }
body[ega-theme="darks"] .drn-pager small,
body[ega-theme="darks"] .drn-topic p { color: #a9b4bc !important; }

/* Content pages: the sidebar and article rise into the bottom of the hero.
   The hero gets extra bottom padding so the overlap never covers its title or description. */
.drn-page-wrap { position: relative; z-index: 2; margin-top: -72px; }
.drn:has(.drn-page-wrap) .dl .dl-hero { padding-bottom: 112px; }
.drn-page-wrap .drn-page,
.drn-page-wrap .drn-side { box-shadow: 0 18px 40px rgba(16,42,67,.14); }
@media (max-width: 575.98px) {
    .drn-page-wrap { margin-top: -40px; }
    .drn:has(.drn-page-wrap) .dl .dl-hero { padding-bottom: 72px; }
}

/* "TCAA Home" button in the drone header nav: solid orange so the way back to the main site is easy to spot.
   The header sits outside .drn, so the orange is spelled out here. */
.drn-home-btn {
    flex-shrink: 0; align-items: center; gap: .5rem; margin-right: 1.25rem;
    padding: .55rem 1.1rem; border-radius: 999px;
    background: var(--secondary-color, #f36f21); color: #fff !important;
    font-weight: 700; font-size: .9rem; letter-spacing: .02em; white-space: nowrap; text-decoration: none;
    box-shadow: 0 6px 18px rgba(243,111,33,.45);
    transition: background-color .2s, transform .2s, box-shadow .2s;
}
.drn-home-btn:not(.d-none) { display: inline-flex; }
.drn-home-btn i { font-size: 1rem; line-height: 1; }
.drn-home-btn:hover, .drn-home-btn:focus-visible {
    background: #d95c12; color: #fff; transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(243,111,33,.55);
}
.drn-home-btn:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 2px; }
@media (max-width: 991.98px) {
    .drn-home-btn { margin-right: .25rem; padding: .45rem .85rem; font-size: .82rem; }
}

/* Phones: the topic menu folds into a button showing the current page (see drone/page.blade.php),
   the article gets more width, and CMS text set to justify is left-aligned so it doesn't leave wide gaps. */
.drn-side-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%;
    padding: .35rem .25rem; border: 0; background: none; color: inherit; text-align: left;
}
.drn-side-toggle small {
    display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--drn-muted);
}
.drn-side-toggle strong { display: block; font-size: 1rem; line-height: 1.3; }
.drn-side-toggle i { flex-shrink: 0; font-size: 1.1rem; color: var(--drn-orange); transition: transform .2s; }
.drn-side-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
body[ega-theme="darks"] .drn-side-toggle { color: #e6edf2; }
body[ega-theme="darks"] .drn-side-toggle small { color: #a9b4bc; }

@media (max-width: 767.98px) {
    .drn-side { position: static; padding: .75rem 1rem; border-radius: 14px; }
    .drn-side ul { margin-top: .5rem; }
    .drn-page { padding: 1.4rem 1.15rem; border-radius: 14px; }
    .drn-page .rich-text { overflow-wrap: anywhere; }
    .drn-page .rich-text [style*="justify"] { text-align: left !important; }

    /* The photo shows through less, so the title and description stay readable across the full width. */
    .dl-hero-shade { background: linear-gradient(180deg, rgba(6,32,77,.9) 0%, rgba(8,45,102,.78) 100%); }
    .dl .dl-hero-title { font-size: 1.55rem; line-height: 1.15; }
}
