/* resources.css — the free template library at /resources/, whose pages are written by
   landing/tailwind/build-resources.mjs. Hand-authored like glass.css, and loaded after it, so it uses the
   site palette glass.css sets on html:root (--ink, --pale, --teal, --line, --muted, --night, --mint). */

.rs { font-size: 16px; }
.rs [id] { scroll-margin-top: 88px; }
.rs-wrap { width: min(800px, 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .rs-wrap { padding-inline: 24px; } }

/* ---- Hero ---- */
.rs-hero { padding: 112px 0 44px; background: var(--pale); }
.rs-crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.rs-crumbs li + li::before { content: "›"; margin: 0 8px; color: #8aa19f; }
.rs-crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: #b9cfc8; text-underline-offset: 3px; }
.rs-crumbs a:hover { color: var(--teal); }
.rs-kicker { margin: 26px 0 0; color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.rs-hero h1 { margin: 12px 0 0; color: var(--ink); font-size: clamp(32px, 4vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.rs-lead { max-width: 640px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

/* ---- Body ---- */
.rs-body { padding-block: 44px 64px; }
.rs-section { margin-top: 48px; }
.rs h2 { color: var(--ink); font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.rs-section h3 { margin: 22px 0 6px; color: var(--ink); font-size: 17px; font-weight: 600; }
.rs-section p, .rs-section li { color: #3d5c5f; font-size: 15px; line-height: 1.75; }
.rs-section ul { margin: 14px 0 0; padding-left: 20px; list-style: disc; }
.rs-section ul li { margin-top: 6px; }
.rs-link { display: inline-flex; gap: 10px; margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid #9fbfb4; color: var(--ink); font-size: 15px; font-weight: 600; }
.rs-link:hover { color: var(--teal); border-color: var(--teal); }
.rs-fine { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.rs-fine a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.rs-disclaimer { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---- Operator note and warning ---- */
.rs-note { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.rs-note img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.rs-note p { margin: 0; color: #3d5c5f; font-size: 15px; line-height: 1.7; }
.rs-note p + p { margin-top: 8px; }
.rs-note .rs-note-who { color: var(--ink); font-size: 13px; font-weight: 600; }
.rs-note .rs-note-src { color: var(--muted); font-size: 13px; }
.rs-todo { padding: 8px 10px; border: 1px dashed #b45309; color: #7a4a00 !important; background: #fff6e5; }
.rs-warning { margin-top: 20px; padding: 16px 20px; border-left: 4px solid #b45309; border-radius: 4px; background: #fff7ed; }
.rs-warning p { margin: 0; color: #5b3a12; font-size: 15px; line-height: 1.7; }
.rs-warning strong { font-weight: 600; }

/* ---- What's inside ---- */
.rs-toc { margin: 14px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.rs-toc li { break-inside: avoid; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rs-toc a { color: var(--teal); }
.rs-toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .rs-toc { columns: 1; } }

/* ---- The template ---- */
.rs-doc { margin-top: 28px; padding: 32px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.rs-doc .rs-doc-title { margin: 0 0 8px; font-size: 24px; }
.rs-doc h3 { margin: 28px 0 8px; color: var(--ink); font-size: 18px; font-weight: 600; }
.rs-doc h4 { margin: 20px 0 6px; color: var(--ink); font-size: 16px; font-weight: 600; }
.rs-doc p, .rs-doc li { color: #2f4f52; font-size: 15px; line-height: 1.75; }
.rs-doc p { margin: 10px 0 0; }
.rs-doc ul, .rs-doc ol { margin: 10px 0 0; padding-left: 22px; }
.rs-doc ul { list-style: disc; }
.rs-doc ol { list-style: decimal; }
.rs-doc li { margin-top: 4px; }
.rs-doc strong { color: var(--ink); font-weight: 600; }
.rs-doc hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.rs-table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.rs-table:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.rs-doc table { width: 100%; border-collapse: collapse; }
.rs-doc th, .rs-doc td { padding: 8px 10px; border-bottom: 1px solid var(--line); color: #2f4f52; font-size: 14px; line-height: 1.55; text-align: left; vertical-align: top; }
.rs-doc th { background: var(--pale); color: var(--ink); font-weight: 600; }
.rs-doc tr:last-child td { border-bottom: 0; }
/* Placeholders: a soft background, and the brackets stay, so colour is never the only cue. */
.ph { padding: 0 3px; border-radius: 3px; background: #fdf3c7; color: #4a3b00; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 640px) { .rs-doc { padding: 22px 16px; } }

/* ---- Download, feature, cards ---- */
.rs-download { margin-top: 28px; padding: 24px; border-radius: 7px; background: var(--pale); }
.rs-download p { margin: 8px 0 0; color: #3d5c5f; font-size: 15px; }
.rs-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 16px; padding: 0 22px; border-radius: 4px; color: #fff; background: var(--teal); font-size: 15px; font-weight: 600; }
.rs-button:hover { color: #fff; background: var(--teal-dark); }
.rs-button-light { color: var(--ink); background: #fff; }
.rs-button-light:hover { color: var(--ink); background: var(--pale); }
.rs-feature img { width: 100%; height: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 7px; }
/* .rs prefix: a card grid inside a section must outrank .rs-section ul (bullets and indent). */
.rs .rs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.rs .rs-cards li { margin-top: 0; }
.rs-card a { display: flex; flex-direction: column; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: #fff; transition: border-color .18s ease; }
.rs-card a:hover { border-color: var(--teal); }
.rs-card h2, .rs-card h3 { margin: 8px 0 0; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.rs-card p { flex-grow: 1; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.rs-card-cat { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.rs-card-meta { margin-top: 14px; color: var(--muted); font-size: 12px; }
.rs-cards-hub h2 { margin-top: 0; font-size: 20px; }
.rs-jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rs-jump a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-size: 14px; }
.rs-jump a:hover { border-color: var(--teal); }

/* ---- Bather load calculator ---- */
.rs-calc { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.rs-calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 16px; }
.rs-calc-wide { grid-column: 1 / -1; }
.rs-calc label, .rs-calc legend { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.rs-calc input[type="number"], .rs-calc select { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 0 10px; border: 1px solid #b9cfc8; border-radius: 4px; color: var(--ink); background: #fff; font: inherit; font-weight: 400; }
.rs-calc fieldset { margin: 0; padding: 0; border: 0; }
.rs-calc .rs-inline { display: inline-flex; align-items: center; gap: 6px; margin: 8px 18px 0 0; font-weight: 400; }
.rs-calc-result { margin-top: 18px; padding: 16px 18px; border-radius: 4px; color: var(--ink); background: var(--pale); font-size: 15px; line-height: 1.7; }
.rs-calc-result p { margin: 0; }
.rs-calc-result p + p { margin-top: 6px; }
.rs-calc-note { margin-top: 14px; color: #3d5c5f; font-size: 14px; line-height: 1.7; }
.rs-calc-note ul { margin: 8px 0 0; padding-left: 20px; list-style: disc; }
.rs-calc .rs-calc-limit { max-width: 260px; margin-top: 16px; }
@media (max-width: 480px) { .rs-calc-form { grid-template-columns: 1fr; } }

/* ---- Final call to action ---- */
.rs-cta { padding: 64px 0; color: #fff; background: var(--night); text-align: center; }
.rs-cta h2 { color: #fff; }
.rs-cta p { max-width: 560px; margin: 12px auto 0; color: #c3dcd7; font-size: 16px; line-height: 1.7; }
.rs-cta :focus-visible { outline-color: var(--mint); }

/* ---- Print: the H1 and the template only ---- */
@media print {
  .site-nav, .site-footer, .rs-crumbs, .rs-kicker, .rs-lead, .rs-cta, .rs-body > :not(.rs-doc) { display: none !important; }
  .rs-hero { padding: 0; background: none; }
  .rs-doc { padding: 0; border: 0; }
  .ph { background: none; }
}
