/* NOTAM tekstgenerator. The page is an .operational-view like Oversikt and Oppdrag: the base look
   comes from style.css, the top bar from portal-shell.css and the shared page look and components
   (section cards, form grid, info tips, code blocks, states) from operational-view.css. This file
   holds only what is particular to NOTAM. */

/* Layout: form and draft preview in one column on small screens, side by side from 1024px, and
   the form itself in two columns from 1680px. The DOM order (Kart, Sted og luftrom, Droneoperasjon,
   Tid, Kontakt og merknad, then the preview) is the reading and tab order at every width. */
.notam-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
.notam-workspace,.generator-form,.notam-form-column,.notam-form-columns{display:grid;gap:16px;min-width:0;align-content:start}
.notam-workspace{gap:16px}
@media(min-width:1024px){
 .notam-layout{grid-template-columns:minmax(0,1fr) minmax(360px,440px)}
 /* The preview stays in view under the sticky top bar (92px) while the form scrolls, and scrolls
    on its own when it is taller than the window. */
 .output-panel{position:sticky;top:108px;max-height:calc(100vh - 124px);max-height:calc(100dvh - 124px);overflow:auto}
}
@media(min-width:1680px){
 .notam-layout{grid-template-columns:minmax(0,1fr) minmax(400px,520px)}
 .notam-form-columns{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
}

/* Operation context: the area picker only shows when the operation has polygons. */
.operation-area-actions{align-self:end}
.operation-area-message{margin:12px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.operation-area-message:empty{display:none}

/* Map: the drawing canvas inside the Kart card. Google Maps keeps its own control colours. */
.draw-map{width:100%;height:clamp(320px,45vh,560px);overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.gm-style{color:#222}

/* Draft preview: two copyable texts and the validation messages. */
.notam-output{min-height:260px}
.notam-output.is-compact{min-height:120px}
.notam-validation{margin-top:14px}

/* Phones and tablets (and any touch screen): every field and button is at least 44px high.
   Oversikt and Oppdrag keep 40px for now; Systemstatus and Min konto do the same in style.css. */
@media(max-width:1023.98px),(pointer:coarse){
 .notam-page.operational-view:not(#_) :is(button,select,textarea,input:not([type="checkbox"],[type="radio"])):where(:not(.gm-style *)){min-height:44px}
 .notam-page.operational-view:not(#_) input[type="file"]:where(:not(.gm-style *))::file-selector-button{min-height:34px}
}
