/* THIS IS FLORIDA free apps: shared styles (resume builder, invoice maker, permit test) */
:root {
  --ink: #12322a; --muted: #4a5f58; --line: #c9d6cf; --bg: #f6f9f7; --card: #ffffff;
  --brand: #1b6b4f; --brand-ink: #ffffff; --danger: #a3302a; --focus: #f2a900; --good: #1b6b4f; --bad: #a3302a;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: .5rem; top: .5rem; }
.app { max-width: 1200px; margin: 0 auto; padding: 1rem 16px 3rem; color: var(--ink); }
.app a { color: var(--brand); }
.app-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; margin: .3rem 0 .6rem; }
.kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; margin: 0; }
.lede { font-size: 1.05rem; line-height: 1.55; max-width: 60ch; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: .8rem 0 1.2rem; }
.badges li { background: #e6f2ec; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .9rem; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 1rem; }
.tab { min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--line); border-bottom: 0; border-radius: .5rem .5rem 0 0; background: var(--bg); font: inherit; cursor: pointer; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.editor fieldset { border: 1px solid var(--line); border-radius: .6rem; padding: .8rem 1rem 1rem; margin: 0 0 1rem; background: var(--card); }
.editor legend { font-weight: 700; padding: 0 .3rem; }
.editor label { display: block; margin: .55rem 0; font-weight: 600; font-size: .95rem; }
.editor input, .editor select, .editor textarea { display: block; width: 100%; box-sizing: border-box; margin-top: .25rem; min-height: 44px;
  padding: .55rem .65rem; border: 1px solid #8fa79c; border-radius: .4rem; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.editor textarea { min-height: 88px; resize: vertical; }
.hint { color: var(--muted); margin: 0 0 .8rem; }
.rep { border-top: 1px dashed var(--line); padding-top: .6rem; margin-top: .6rem; }
.rep:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.rep-h { font-weight: 700; margin: .2rem 0; }
.rep-actions, .toolbar { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.app button, .filebtn { min-height: 44px; padding: .5rem .9rem; border-radius: .45rem; border: 1px solid #8fa79c; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.app button:disabled { opacity: .45; cursor: default; }
.app button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.app button.danger { color: var(--danger); border-color: #d7a9a5; }
.app button.add { margin-top: .6rem; }
.filebtn { display: inline-flex; align-items: center; }
.filebtn input { position: absolute; left: -9999px; }
.filebtn:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.app :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.status { flex-basis: 100%; margin: .2rem 0 0; color: var(--muted); min-height: 1.3em; }
.preview-wrap { position: sticky; top: .75rem; }
@media (max-width: 900px) { .preview-wrap { position: static; } }
.paper { background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 2rem 2.1rem; margin-top: .8rem;
  font-family: Georgia, "Times New Roman", serif; color: #111; line-height: 1.45; font-size: 15px; overflow-wrap: anywhere; }
.tips { max-width: 75ch; line-height: 1.6; }
.tips li { margin: .45rem 0; }
.foot { margin-top: 2rem; color: var(--muted); }

/* resume styles */
.rp-top { text-align: center; margin-bottom: .6rem; }
.rp-name { font-size: 1.7rem; margin: 0; letter-spacing: .02em; }
.rp-headline { margin: .15rem 0; font-size: 1.05rem; }
.rp-contact { margin: .15rem 0; font-size: .92rem; color: #333; }
.rp-sec h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #222; margin: 1rem 0 .4rem; padding-bottom: .15rem; }
.rp-line { margin: .5rem 0 .15rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; }
.rp-meta { color: #333; font-size: .92rem; }
.rp-item ul, .rp-sec ul { margin: .2rem 0 .4rem 1.1rem; padding: 0; }
.rp-item li, .rp-sec li { margin: .12rem 0; }
.rp-note { margin: .1rem 0 .3rem; font-size: .92rem; }
.style-modern { font-family: "Segoe UI", Arial, Helvetica, sans-serif; }
.style-modern .rp-top { text-align: left; border-left: 5px solid #1b6b4f; padding-left: .8rem; }
.style-modern .rp-sec h3 { border-bottom: 2px solid #1b6b4f; color: #1b6b4f; }
.style-compact { font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.35; padding: 1.4rem 1.6rem; }
.style-compact .rp-name { font-size: 1.4rem; }
.style-compact .rp-sec h3 { margin-top: .7rem; }
/* letter */
.letter p { margin: 0 0 .9rem; }
.lp-top { border-bottom: 1px solid #222; margin-bottom: 1.2rem; padding-bottom: .4rem; }
.lp-name { font-size: 1.4rem; font-weight: 700; margin: 0; }
.lp-contact { margin: .1rem 0 0; font-size: .92rem; }
.lp-sign { margin-top: 1.4rem; }

/* printing: only the chosen document (when printed from the app's own button) */
@media print {
  @page { margin: .55in; }
  body[data-print] > *:not(main), body[data-print] main > *:not(.panel), body[data-print] .no-print,
  body[data-print] .editor, body[data-print] .toolbar, body[data-print] .skip-link, body[data-print] [class*="userway"] { display: none !important; }
  body[data-print] .panel { display: none !important; }
  body[data-print="resume"] #panel-resume, body[data-print="letter"] #panel-letter, body[data-print="doc"] #panel-doc { display: block !important; }
  body[data-print="resume"] #letter-preview, body[data-print="letter"] #resume-preview { display: none !important; }
  body[data-print] .layout { display: block; }
  body[data-print] .preview-wrap { position: static; }
  body[data-print] main.app { padding: 0; max-width: none; }
  body[data-print] .paper { border: 0; box-shadow: none; margin: 0; padding: 0; }
  .no-print { display: none !important; }
}
