/* =============================================================
   /asukastiedote (views/landing/resident-notice.php), 2026-10-13
   The page around the printable resident notice, on the landing design system. The notice itself keeps
   its layout and print rules (.notice-sheet in landing.css); this file only frames it on screen and resets
   the new bands for print. Built on landing.css section 6 and pages/content.css. Prefix rn-.
   ============================================================= */

/* ---------- head ---------- */
.rn-head .lp-head__copy { max-width: 1100px; }
.rn-head .lp-head__copy > .lp-lead { max-width: 36em; }
/* the head's object: the notice as paper (the plan page's .tl-paper treatment); desktop only */
.rn-paper { position: relative; justify-self: center; width: 100%; max-width: 380px; aspect-ratio: 210 / 250; margin: 0 auto; }
.rn-paper__sheet { position: absolute; inset: 0 24px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; overflow: hidden; padding: 30px 30px 0; border-radius: 8px; background: #FFFEFB; color: var(--yo); text-align: center;
    box-shadow: 0 46px 70px -42px rgba(20,35,31,.55), 0 2px 6px rgba(20,35,31,.06); transform: rotate(-2deg); }
.rn-paper__sheet--back { inset: 18px 0 -14px 24px; padding: 0; background: #EFEBE2; transform: rotate(2.6deg); box-shadow: 0 30px 50px -36px rgba(20,35,31,.45); }
.rn-paper__det { position: relative; width: 38px; height: 38px; margin-bottom: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px var(--yo); }
.rn-paper__det::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 1.5px solid rgba(20,35,31,.5); }
.rn-paper__det::after { content: ""; position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--valo); }
.rn-paper__kick { margin: 0; font: 600 11.5px/1.2 var(--lp-body); letter-spacing: .14em; text-transform: uppercase; color: var(--kuusi); }
.rn-paper__head { margin: 0 0 6px; max-width: 94%; padding-bottom: 12px; border-bottom: 2.5px solid var(--yo); font: 700 21px/1.05 var(--lp-display); text-transform: uppercase; color: var(--yo); }
.rn-paper__sheet i { display: block; width: 86%; height: 7px; flex: none; border-radius: var(--r); background: var(--viiva); }
.rn-paper__sheet i.is-s { width: 62%; }
.rn-paper__sheet i.is-gap { margin-top: 8px; }
.rn-paper__ph { display: block; width: 52%; height: 16px; flex: none; margin-top: 10px; align-self: flex-start; margin-left: 7%; border-radius: var(--r); background: var(--attn-bg); border-bottom: 2px dashed var(--okra-line); }
.rn-paper__ph.is-s { width: 38%; margin-top: 0; }
@media (max-width: 1023px) { .rn-head .lp-head__aside { display: none; } }

/* ---------- the notice as paper, the notes beside it (Jäkälä) ---------- */
.rn-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px clamp(40px, 5vw, 96px); align-items: start; }
.rn-main { min-width: 0; max-width: 60rem; }
@media screen {
    .rn-band .notice-sheet { border: 0; border-radius: 10px; background: #FFFEFB; box-shadow: 0 50px 90px -56px rgba(20,35,31,.55), 0 1px 3px rgba(20,35,31,.06); }
    .rn-band .notice-sheet :focus-visible { outline-color: var(--kuusi); }
    .rn-band .notice-sheet .ph { padding: 1px 6px; border-radius: 5px; border-bottom: 2px dashed var(--okra-line); background: var(--attn-bg); color: var(--attn-fg); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
    .rn-band .notice-sheet .ph:hover { background: #F7DFB4; }
    .rn-band .notice-sheet .ph:focus { border-bottom-color: transparent; background: #fff; color: var(--yo); outline: 3px solid var(--kuusi); }
    .rn-band .notice-sheet .ph.is-filled { border-bottom: 2px solid var(--kuusi); background: var(--jakala); color: var(--yo); }
    /* the credit line under the notice: 15 px on screen (print keeps its own size) */
    .rn-band .notice-sheet p.notice-sheet__foot { font-size: 15px; }
}
.rn-author { margin-top: 28px; }
.rn-aside { position: sticky; top: calc(var(--navh) + 32px); display: grid; gap: 34px; }
.rn-aside__title { margin: 0 0 12px; font: 600 16px/1.3 var(--lp-body); color: var(--kuusi); }
.rn-tips { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--kuusi); }
.rn-tips li { padding: 13px 0; border-bottom: 1px solid rgba(31,77,71,.16); font: 500 16px/1.5 var(--lp-body); color: #3F4D49; }
.rn-tips .lp-ulink { font-size: 16px; line-height: 1.5; }
.rn-links { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--kuusi); }
.rn-links li { border-bottom: 1px solid rgba(31,77,71,.16); }
.rn-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; font: 600 16.5px/1.4 var(--lp-body); color: var(--kuusi); }
.rn-links a svg { width: 18px; height: 18px; transition: transform .25s var(--lp-ease); }
.rn-links a:hover span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(31,77,71,.4); }
.rn-links a:hover svg { transform: translateX(3px); }

/* ---------- breakpoints ---------- */
@media (max-width: 1023px) {
    .rn-grid { grid-template-columns: minmax(0, 1fr); }
    .rn-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 30px 40px; }
}
@media (max-width: 639px) {
    .rn-head .lp-head__acts .lp-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .rn-links a svg { transition: none; }
}

/* ---------- print: only the notice (its own rules are in landing.css) ---------- */
@media print {
    body:has(.notice-sheet) main > :not(.rn-band) { display: none !important; }
    .rn-band { padding: 0 !important; background: #fff !important; }
    .rn-band .lp-wrap { max-width: none !important; padding: 0 !important; }
    .rn-grid { display: block; }
    .rn-main { max-width: none; }
}
