/* The Niche Finder. Uses the colours and type of styles.css. No inline styles anywhere (the page forbids them). */
.nf-hero .nf-meta { color: var(--gold-light); font-size: .95rem; font-weight: 600; margin: 1.4rem 0 0; }
.nf-section { padding: 4rem 0 6rem; }
.nf-wrap { max-width: 900px; }
.nf-note { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--r-sm); padding: 1rem 1.25rem; }
.nf { color: var(--text-dark); }
.nf h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -.03em; margin: 0 0 .6rem; }
.nf h3 { font-size: 1.25rem; letter-spacing: -.02em; margin: 2.2rem 0 .7rem; }
.nf p { color: var(--text-dark-soft); }
.nf-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 .8rem; }
.nf-progress { height: 6px; background: var(--ivory-2); border-radius: 99px; overflow: hidden; margin: 0 0 2.2rem; }
.nf-progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); border-radius: 99px; transition: width .35s ease; }
.nf-card { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--r-md); padding: 1.6rem 1.7rem; margin: 0 0 1.1rem; box-shadow: var(--shadow-soft); }
.nf-card.flat { box-shadow: none; }
.nf-field { margin: 0 0 1.3rem; }
.nf-field label { display: block; font-weight: 700; color: var(--text-dark); margin: 0 0 .35rem; }
.nf-field small { display: block; color: var(--text-dark-soft); margin: 0 0 .5rem; font-size: .9rem; }
.nf textarea, .nf input[type="text"], .nf select { width: 100%; font: inherit; color: var(--text-dark); background: #fff; border: 1.5px solid rgba(27,26,21,.18); border-radius: var(--r-sm); padding: .8rem .95rem; }
.nf textarea { min-height: 5.2rem; resize: vertical; }
.nf textarea:focus, .nf input[type="text"]:focus, .nf select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.nf-q { border: 0; padding: 0; margin: 0 0 1.1rem; }
.nf-q legend { font-weight: 700; font-size: 1.06rem; color: var(--text-dark); padding: 0; margin: 0 0 .8rem; line-height: 1.4; }
.nf-opts { display: flex; flex-wrap: wrap; gap: .6rem; }
.nf-opt { font: inherit; font-weight: 600; font-size: .95rem; color: var(--text-dark); background: #fff; border: 1.5px solid rgba(27,26,21,.2); border-radius: 99px; padding: .6rem 1.15rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.nf-opt:hover { border-color: var(--gold-deep); }
.nf-opt[aria-pressed="true"] { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.nf-opt:focus-visible, .nf-copy:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nf-opts.stack { flex-direction: column; align-items: stretch; }
.nf-opts.stack .nf-opt { border-radius: var(--r-sm); text-align: left; padding: .85rem 1.1rem; }
.nf-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2rem 0 0; flex-wrap: wrap; }
.nf-nav .nf-link { background: none; border: 0; font: inherit; font-weight: 700; color: var(--gold-deep); cursor: pointer; text-decoration: underline; padding: .5rem 0; }
.nf-warn { color: #b3402f; font-weight: 600; margin: 1rem 0 0; min-height: 1.4em; }
.nf-result { border-left: 5px solid var(--gold); }
.nf-result .nf-fit { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--gold-light); border-radius: 99px; padding: .35rem .8rem; margin: 0 0 .9rem; }
.nf-result h3 { margin-top: 0; font-size: 1.5rem; }
.nf-bar { height: 8px; background: var(--ivory-2); border-radius: 99px; overflow: hidden; margin: .2rem 0 1.2rem; max-width: 320px; }
.nf-bar span { display: block; height: 100%; width: 0; background: var(--gold-grad); }
.nf-sentence { background: var(--ink); color: var(--gold-light); border-radius: var(--r-sm); padding: 1rem 1.2rem; font-size: 1.08rem; font-weight: 500; line-height: 1.45; margin: 1rem 0; }
.nf-sentence small { display: block; font-size: .68rem; letter-spacing: .18em; font-weight: 800; color: var(--gold); text-transform: uppercase; margin: 0 0 .4rem; }
.nf ul.nf-list { margin: .4rem 0 1rem; padding: 0 0 0 1.2rem; color: var(--text-dark-soft); }
.nf ul.nf-list li { margin: 0 0 .35rem; }
.nf-examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: .8rem 0 0; }
.nf-ex { background: var(--ivory); border: 1px solid var(--line-light); border-radius: var(--r-sm); padding: .9rem 1rem; }
.nf-ex strong { display: block; color: var(--text-dark); line-height: 1.3; }
.nf-ex span { display: block; font-size: .88rem; color: var(--text-dark-soft); margin: .25rem 0 .5rem; }
.nf-ex a { font-size: .88rem; font-weight: 700; color: var(--gold-deep); }
.nf-builder { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.nf-score { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: center; }
.nf-score label { font-weight: 600; color: var(--text-dark); }
.nf-score select { width: auto; min-width: 5.2rem; }
.nf-total { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); margin: 1.2rem 0 0; }
.nf-prompt { margin: 0 0 1rem; }
.nf-prompt summary { cursor: pointer; font-weight: 800; color: var(--text-dark); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.nf-prompt summary::-webkit-details-marker { display: none; }
.nf-prompt summary::after { content: "Show"; font-size: .8rem; font-weight: 700; color: var(--gold-deep); text-decoration: underline; flex: none; }
.nf-prompt[open] summary::after { content: "Hide"; }
.nf-prompt p { margin: .5rem 0 .8rem; font-size: .95rem; }
.nf-prompt pre { white-space: pre-wrap; word-wrap: break-word; font-family: var(--sans); font-size: .92rem; line-height: 1.55; background: var(--ivory); border: 1px solid var(--line-light); border-radius: var(--r-sm); padding: 1rem 1.1rem; margin: 0 0 .8rem; color: var(--text-dark); max-height: 22rem; overflow: auto; }
.nf-copy { font: inherit; font-weight: 700; font-size: .92rem; background: var(--ink); color: var(--ivory); border: 0; border-radius: 99px; padding: .6rem 1.2rem; cursor: pointer; }
.nf-copy.done { background: var(--gold-deep); }
.nf-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.nf-next a { display: block; background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--r-sm); padding: 1.1rem 1.2rem; color: var(--text-dark); text-decoration: none; }
.nf-next a:hover { border-color: var(--gold-deep); }
.nf-next strong { display: block; margin: 0 0 .3rem; }
.nf-next span { font-size: .9rem; color: var(--text-dark-soft); }
.nf-small { font-size: .88rem; color: var(--text-dark-soft); }
.nf-letter { padding-top: 5rem; }
@media (max-width: 720px) {
  .nf-examples, .nf-builder, .nf-next { grid-template-columns: 1fr; }
  .nf-card { padding: 1.25rem 1.1rem; }
  .nf-score { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .nf-hero, .nf-letter, .site-footer, .nf-nav, .nf-copy, .nf-progress, .cookie-banner { display: none !important; }
  .nf-section { padding: 0; }
  .nf-card { box-shadow: none; break-inside: avoid; }
  .nf-prompt pre { max-height: none; overflow: visible; }
}
.nf-hidden { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
