/* Teren chroniony (B2): arkusz mapy terenowej i zielona tablica z żółtym napisem.
   Kroje: Sofia Sans Condensed (tytuły, liczby) i Sofia Sans (tekst), oba lokalnie. */
@font-face { font-family: 'Sofia Sans Condensed'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('teren-fonts/sofia-sans-condensed-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans Condensed'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('teren-fonts/sofia-sans-condensed-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans Condensed'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('teren-fonts/sofia-sans-condensed-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans Condensed'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('teren-fonts/sofia-sans-condensed-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('teren-fonts/sofia-sans-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('teren-fonts/sofia-sans-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('teren-fonts/sofia-sans-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('teren-fonts/sofia-sans-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --tr-forest: #1b5e3f;      /* zieleń tablicy leśnej */
  --tr-forest-deep: #134730;
  --tr-board: #f4c531;       /* żółty napis na tablicy */
  --tr-paper: #f3f6e8;       /* papier arkusza */
  --tr-sheet: #fffffa;
  --tr-tint: #d9eac1;        /* zielony nadruk lasu */
  --tr-contour: #a9662b;     /* brąz poziomic */
  --tr-water: #17598c;       /* błękit wód: odnośniki */
  --tr-border: #c8372d;      /* czerwień granicy rezerwatu */
  --tr-ink: #18281f;
  --tr-quiet: #4d5c4c;
  --tr-line: #c3cfb0;
  --tr-display: 'Sofia Sans Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --tr-text: 'Sofia Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --tr-ticks: repeating-linear-gradient(90deg, var(--tr-ink) 0 1px, transparent 1px 8px);
  --tr-ticks-long: repeating-linear-gradient(90deg, var(--tr-ink) 0 1px, transparent 1px 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--tr-paper); color: var(--tr-ink); font: 400 1.0625rem/1.55 var(--tr-text); }
img, svg { max-width: 100%; }
a { color: var(--tr-water); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tr-water); outline-offset: 2px; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.tr-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tr-direct { position: absolute; left: .75rem; top: -4rem; z-index: 20; padding: .6rem 1rem; background: var(--tr-board); color: var(--tr-ink); font-weight: 600; }
.tr-direct:focus { top: .75rem; }

/* układ: tablica z lewej, arkusz z prawej */
.tr-shell { display: grid; grid-template-columns: 19.5rem minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 100vh; }
.tr-sidebar { grid-row: 1 / span 2; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 2.1rem 1.9rem 2rem; background: var(--tr-forest); color: #fff;
  box-shadow: inset 0 0 0 .55rem var(--tr-forest), inset 0 0 0 calc(.55rem + 2px) var(--tr-board); display: flex; flex-direction: column; gap: 1.5rem; }
.tr-sidebar a { color: #fff; }
.tr-sidebar :focus-visible { outline-color: var(--tr-board); }
.tr-logotype { display: flex; align-items: center; gap: .7rem; color: var(--tr-board) !important; text-decoration: none; font: 700 1.9rem/1 var(--tr-display); letter-spacing: .01em; }
.tr-logotype svg { flex: none; }
.tr-tagline { font-size: 1rem; line-height: 1.4; color: #e3efdf; max-width: 16rem; }
.tr-menu { display: grid; gap: .1rem; border-top: 2px solid var(--tr-board); }
.tr-menu a { display: block; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .28); font: 700 1.3rem/1.15 var(--tr-display); text-decoration: none; }
.tr-menu a:hover, .tr-menu a[aria-current] { color: var(--tr-board); }
.tr-key { margin-top: auto; font-size: .92rem; }
.tr-key p { font: 500 1.05rem/1.2 var(--tr-display); color: var(--tr-board); margin-bottom: .55rem; }
.tr-key li { display: flex; align-items: center; gap: .6rem; padding: .16rem 0; line-height: 1.3; }

/* znak formy ochrony: kolor jak w legendzie mapy; obiekty drobne mają romb */
.tr-mark { flex: none; display: inline-block; width: .82rem; height: .82rem; border: 1.5px solid var(--tr-ink); background: #8a9a84; }
.tr-sidebar .tr-mark { border-color: #fff; }
.tr-mark-pn { background: #1f8a4f; }
.tr-mark-rp { background: var(--tr-border); }
.tr-mark-pk { background: #8cc152; }
.tr-mark-ok { background: #f0a51e; }
.tr-mark-n2 { background: #2d83c9; }
.tr-mark-ue { background: #17a595; transform: rotate(45deg) scale(.86); }
.tr-mark-zp { background: #9460bd; transform: rotate(45deg) scale(.86); }
.tr-mark-sd { background: var(--tr-contour); transform: rotate(45deg) scale(.86); }
.tr-mark-gm { background: var(--tr-board); border-radius: 50%; }

/* wyszukiwarka */
.tr-finder { position: relative; }
.tr-finder label { display: block; margin-bottom: .45rem; font-weight: 600; }
.tr-finderrow { display: flex; border: 2px solid var(--tr-ink); background: #fff; }
.tr-sidebar .tr-finderrow { border-color: var(--tr-board); }
.tr-finderrow input { flex: 1; min-width: 0; padding: .62rem .75rem; border: 0; background: transparent; color: var(--tr-ink); font: inherit; }
.tr-finderrow input:focus-visible { outline-offset: -3px; }
.tr-finderrow button { padding: 0 1rem; border: 0; border-left: 2px solid var(--tr-ink); background: var(--tr-board); color: var(--tr-ink); font: 700 1.1rem/1 var(--tr-display); cursor: pointer; }
.tr-finderrow button:hover { background: #ffd95a; }
.tr-finderlist { position: absolute; z-index: 15; left: 0; right: 0; top: 100%; margin-top: -2px; max-height: 22rem; overflow-y: auto; border: 2px solid var(--tr-ink); background: var(--tr-sheet); box-shadow: 0 .5rem 0 rgba(24, 40, 31, .14); }
.tr-finderlist li { border-top: 1px solid var(--tr-line); }
.tr-finderlist li:first-child { border-top: 0; }
.tr-finderlist a { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: baseline; padding: .55rem .75rem; color: var(--tr-ink) !important; text-decoration: none; line-height: 1.3; }
.tr-finderlist a strong { font-weight: 600; }
.tr-finderlist a small { grid-column: 2; color: var(--tr-quiet); font-size: .88rem; }
.tr-finderlist li[aria-selected="true"] a, .tr-finderlist a:hover { background: var(--tr-tint); }
.tr-findernote { margin-top: .5rem; font-size: .92rem; }
.tr-finder-roomy { max-width: 34rem; margin-top: 1.6rem; }
.tr-finder-roomy .tr-finderrow input { padding: .85rem 1rem; font-size: 1.1rem; }
.tr-finder-roomy .tr-finderrow button { padding: 0 1.4rem; font-size: 1.25rem; }

/* arkusz */
main { min-width: 0; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 420'%3E%3Cg fill='none' stroke='%23a9662b' stroke-opacity='.3' stroke-width='1.3'%3E%3Cpath d='M620 40C520 30 430 70 400 150c-26 70 20 150 120 170 60 12 90 10 110 6'/%3E%3Cpath d='M620 86c-80-8-150 22-172 82-18 52 18 108 92 122 40 8 64 6 84 2'/%3E%3Cpath d='M620 132c-56-4-106 16-122 56-12 34 14 70 64 80 26 4 44 4 60 0'/%3E%3Cpath d='M620 176c-34-2-62 8-72 30-8 20 8 40 38 46 14 2 24 2 36 0'/%3E%3Cpath d='M600 -10C470 -20 350 40 320 150c-28 100 40 210 180 236 60 10 100 8 130 2'/%3E%3C/g%3E%3C/svg%3E") no-repeat right -2rem top -1rem / 34rem auto; }
.tr-content { max-width: 63rem; padding: 2.2rem 3.2rem 3.5rem; }
.tr-trail { margin-bottom: 2rem; font-size: .95rem; }
.tr-trail ul { display: flex; flex-wrap: wrap; gap: .1rem .55rem; }
.tr-trail li + li::before { content: '/'; margin-right: .55rem; color: var(--tr-contour); }
.tr-trail span { color: var(--tr-quiet); }
.tr-notification { margin-bottom: 1.6rem; padding: .9rem 1.1rem; border-left: .5rem solid var(--tr-board); background: #fff6cf; }

.tr-heading { max-width: 50rem; }
.tr-kind { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; font-weight: 600; color: var(--tr-quiet); }
h1 { font: 700 clamp(2.5rem, 2.8vw + 1.7rem, 4.3rem)/.98 var(--tr-display); letter-spacing: -.005em; text-wrap: balance; overflow-wrap: anywhere; }
.tr-where { margin-top: 1rem; font-size: 1.15rem; max-width: 44rem; }
.tr-textlead { margin-top: 1rem; font-size: 1.2rem; line-height: 1.5; max-width: 42rem; }

/* podziałka z marginesu mapy: prawdziwe współrzędne miejsca */
.tr-ruler { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.8rem; border-top: 2px solid var(--tr-ink); }
.tr-rulerscale { flex: 1; min-width: 2rem; height: .85rem; background: var(--tr-ticks) 0 0 / auto .42rem repeat-x, var(--tr-ticks-long) 0 0 / auto .85rem repeat-x; }
.tr-ruler p { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 .9rem; padding-top: .3rem; font: 500 1.1rem/1.3 var(--tr-display); font-variant-numeric: tabular-nums; }
.tr-ruler p span:first-child { color: var(--tr-quiet); }
.tr-fix { white-space: nowrap; }

.tr-block { margin-top: 3.2rem; }
.tr-block > h2, .tr-twofields h2, .tr-method h2 { position: relative; margin-bottom: 1.2rem; padding-bottom: .55rem; border-bottom: 2px solid var(--tr-ink); font: 700 1.85rem/1.1 var(--tr-display); }
.tr-block > h2::after, .tr-twofields h2::after, .tr-method h2::after { content: ''; position: absolute; left: 0; bottom: -.5rem; width: 6.5rem; height: .42rem; background: var(--tr-ticks) 0 0 / auto 100% repeat-x; }
.tr-block p { max-width: 44rem; }
.tr-note { margin-top: .9rem; font-size: .93rem; color: var(--tr-quiet); }
.tr-empty { padding: 1rem 1.2rem; border: 2px dashed var(--tr-contour); background: var(--tr-sheet); }
.tr-onward { margin-top: 1.1rem; }
.tr-onward a { display: inline-block; padding: .55rem 1rem; background: var(--tr-forest); color: #fff; font: 700 1.2rem/1.1 var(--tr-display); text-decoration: none; border-left: .45rem solid var(--tr-board); }
.tr-onward a:hover { background: var(--tr-forest-deep); }

/* mapa w ramce arkusza */
.tr-mapblock { margin-top: 2.2rem; }
.tr-map { position: relative; height: clamp(20rem, 56vh, 33rem); margin: 6px; border: 2px solid var(--tr-ink); outline: 1px solid var(--tr-ink); outline-offset: 5px; overflow: hidden;
  background: var(--tr-tint) repeating-radial-gradient(ellipse 60% 46% at 46% 52%, transparent 0 1.55rem, rgba(169, 102, 43, .34) 1.55rem calc(1.55rem + 1px)); }
.tr-mapstatus { margin-top: .9rem; font-weight: 600; }
.tr-mapstatus:empty { display: none; }
.tr-map .maplibregl-popup-content { padding: .8rem 1rem .9rem; border: 2px solid var(--tr-ink); border-radius: 0; box-shadow: .3rem .3rem 0 rgba(24, 40, 31, .2); font: 400 1rem/1.35 var(--tr-text); color: var(--tr-ink); }
.tr-map .maplibregl-popup-close-button { width: 2rem; height: 2rem; font-size: 1.3rem; color: var(--tr-ink); }
.tr-pop { display: grid; gap: .2rem; padding-right: 1.2rem; }
.tr-pop strong { font: 700 1.25rem/1.1 var(--tr-display); }
.tr-pop span { color: var(--tr-quiet); font-size: .93rem; }
.tr-pop a { margin-top: .35rem; font-weight: 600; }

/* dane z rejestru */
.tr-overview { display: grid; grid-template-columns: minmax(15rem, 2fr) 3fr; margin-top: 2.6rem; border: 2px solid var(--tr-ink); background: var(--tr-sheet); }
.tr-area { display: flex; flex-direction: column; justify-content: center; padding: 1.4rem 1.5rem; background: var(--tr-tint); border-right: 2px solid var(--tr-ink); }
.tr-area strong { font: 700 clamp(2.4rem, 3vw + 1.2rem, 3.7rem)/1 var(--tr-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin: .2rem 0; }
.tr-factpairs { display: grid; grid-template-columns: 1fr 1fr; }
.tr-factpairs div { padding: 1rem 1.3rem; border-bottom: 1px solid var(--tr-line); }
.tr-factpairs div:nth-child(odd) { border-right: 1px solid var(--tr-line); }
.tr-factpairs div:nth-last-child(-n+2):nth-child(odd), .tr-factpairs div:last-child { border-bottom: 0; }
dt { font-size: .93rem; color: var(--tr-quiet); }
.tr-factpairs dd { font: 500 1.45rem/1.2 var(--tr-display); font-variant-numeric: tabular-nums; }
.tr-specification { margin-top: 1.3rem; border-top: 1px solid var(--tr-line); }
.tr-specification div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--tr-line); }
.tr-specification dd { font-weight: 600; }
.tr-block .tr-textlead { margin-top: 0; }

.tr-communes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .7rem; }
.tr-communes li { display: grid; padding: .7rem 1rem; background: var(--tr-forest); color: #fff; border-left: .45rem solid var(--tr-board); }
.tr-communes strong { font: 700 1.3rem/1.15 var(--tr-display); }
.tr-communes span { font-size: .92rem; color: #dcebd6; }

/* legenda z liczbami */
.tr-twofields { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; }
.tr-counters li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px dashed var(--tr-contour); }
.tr-counters-plain li { grid-template-columns: 1fr auto; }
.tr-counters strong { font: 700 1.35rem/1 var(--tr-display); font-variant-numeric: tabular-nums; }
.tr-counters-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); column-gap: 2.6rem; }
.tr-counters-none { color: var(--tr-quiet); }
.tr-counters-none strong { font-weight: 500; }

/* wykaz obiektów gminy */
.tr-register li { display: grid; grid-template-columns: auto minmax(0, 3fr) minmax(0, 2fr); align-items: baseline; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--tr-line); }
.tr-register .tr-mark { align-self: center; }
.tr-registername { font-weight: 600; }
.tr-registerform { color: var(--tr-quiet); font-size: .95rem; text-align: right; }

.tr-monuments { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem 2rem; }
.tr-monuments li { padding: .1rem 0 .1rem 1rem; border-left: .3rem solid var(--tr-contour); }
.tr-monuments h3 { font: 700 1.3rem/1.15 var(--tr-display); margin-bottom: .2rem; }
.tr-monuments dl { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; font-size: .95rem; }
.tr-monuments dl div { display: flex; gap: .35rem; }
.tr-monuments dt { font-size: inherit; }

/* zwijane części długich list */
.tr-fold { margin-top: 1.2rem; }
.tr-fold > summary { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border: 2px solid var(--tr-ink); background: var(--tr-sheet); font: 700 1.2rem/1.1 var(--tr-display); cursor: pointer; list-style: none; }
.tr-fold > summary::-webkit-details-marker { display: none; }
.tr-fold > summary::before { content: '+'; display: inline-block; width: 1rem; text-align: center; color: var(--tr-border); font-size: 1.4rem; line-height: .8; }
.tr-fold[open] > summary::before { content: '\2212'; }
.tr-fold > summary:hover { background: var(--tr-tint); }
.tr-fold[open] > summary { margin-bottom: 1.1rem; }
.tr-plainlist { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }

/* karty i regiony */
.tr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); column-gap: 2.4rem; }
.tr-cards li { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: baseline; align-content: start; padding: .65rem 0; border-bottom: 1px solid var(--tr-line); }
.tr-cards .tr-mark { align-self: start; margin-top: .42rem; }
.tr-cards a { font-weight: 600; }
.tr-cards li > span:last-child { grid-column: 2; color: var(--tr-quiet); font-size: .92rem; }
.tr-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .7rem; }
.tr-areas a { display: grid; gap: .1rem; height: 100%; padding: .7rem 1rem .75rem; background: var(--tr-forest); color: #fff; text-decoration: none; border-left: .45rem solid var(--tr-board); }
.tr-areas a:hover { background: var(--tr-forest-deep); }
.tr-areas strong { font: 700 1.35rem/1.1 var(--tr-display); }
.tr-areas strong::first-letter { text-transform: uppercase; }
.tr-areas span { color: var(--tr-board); font-size: .95rem; }

.tr-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.6rem; }
.tr-bars li { display: grid; grid-template-columns: minmax(8.5rem, 11rem) 1fr auto; align-items: center; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--tr-line); }
.tr-bars a { font-weight: 600; }
.tr-bar { height: .7rem; background: linear-gradient(var(--tr-forest), var(--tr-forest)) 0 0 / calc(var(--tr-share, 0) * 100%) 100% no-repeat, var(--tr-tint); border: 1px solid var(--tr-ink); }
.tr-barcount { min-width: 4.2rem; text-align: right; font: 500 1.1rem/1 var(--tr-display); font-variant-numeric: tabular-nums; }

/* zdjęcia */
.tr-frame { margin-top: 2rem; max-width: 50rem; }
.tr-frame img { display: block; width: 100%; height: auto; border: 2px solid var(--tr-ink); background: var(--tr-tint); }
.tr-frame-upright { max-width: 26rem; }
.tr-frame figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding-top: .5rem; }
.tr-framename { font: 700 1.15rem/1.2 var(--tr-display); }
.tr-credit { font-size: .85rem; color: var(--tr-quiet); }
.tr-credit a { color: inherit; }
.tr-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.6rem; align-items: start; }
.tr-frames .tr-frame { margin-top: 0; max-width: none; }
.tr-frame-small img { aspect-ratio: 3 / 2; object-fit: cover; }
.tr-frames .tr-frame:not(.tr-frame-small) { grid-column: span 2; }

/* strona główna */
.tr-opening { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.6rem; align-items: center; }
.tr-opening .tr-frame { margin-top: 0; }
.tr-relief { width: 100%; height: auto; color: var(--tr-contour); background: var(--tr-tint); border: 2px solid var(--tr-ink); }

.tr-method p + h2 { margin-top: 2.4rem; }

/* stronicowanie dopisywane przez silnik */
#tr-main > nav { max-width: 63rem; padding: 0 3.2rem 3rem; font-weight: 600; }

.tr-footnote { grid-column: 2; padding: 1.4rem 3.2rem 2rem; border-top: 2px solid var(--tr-ink); background: var(--tr-sheet); font-size: .95rem; }
.tr-footrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.6rem; }
.tr-footrow strong { font: 700 1.3rem/1 var(--tr-display); }
.tr-sources { margin-top: .7rem; color: var(--tr-quiet); }
.tr-sources summary { cursor: pointer; width: fit-content; color: var(--tr-water); text-decoration: underline; text-underline-offset: .18em; }
.tr-sources p { margin-top: .5rem; max-width: 52rem; font-size: .88rem; }

@media (max-width: 1000px) {
  .tr-shell { display: block; }
  .tr-sidebar { position: static; height: auto; overflow: visible; padding: 1.1rem 1.1rem 1.2rem; gap: .9rem; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; box-shadow: inset 0 -3px 0 var(--tr-board); }
  .tr-logotype { font-size: 1.6rem; }
  .tr-logotype svg { width: 36px; height: 36px; }
  .tr-tagline, .tr-key { display: none; }
  .tr-menu { display: flex; gap: 1.1rem; border-top: 0; }
  .tr-menu a { padding: .3rem 0; border-bottom: 0; font-size: 1.15rem; }
  .tr-sidebar .tr-finder { flex: 1 0 100%; }
  main { background-size: 22rem auto; background-position: right -5rem top -1rem; }
  .tr-content { padding: 1.4rem 1.1rem 2.6rem; }
  #tr-main > nav { padding: 0 1.1rem 2rem; }
  .tr-footnote { padding: 1.2rem 1.1rem 1.8rem; }
  .tr-trail { margin-bottom: 1.4rem; }
  .tr-opening { grid-template-columns: 1fr; gap: 1.8rem; }
  .tr-bars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .tr-block { margin-top: 2.6rem; }
  .tr-overview, .tr-twofields { grid-template-columns: 1fr; }
  .tr-twofields { gap: 2.6rem; }
  .tr-area { border-right: 0; border-bottom: 2px solid var(--tr-ink); }
  .tr-specification div { grid-template-columns: 1fr; gap: .1rem; }
  .tr-register li { grid-template-columns: auto 1fr; }
  .tr-registerform { grid-column: 2; text-align: left; }
  .tr-ruler p { justify-content: flex-start; }
  .tr-rulerscale { display: none; }
  .tr-ruler { border-top-width: 0; background: var(--tr-ticks) 0 0 / auto .42rem repeat-x; padding-top: .5rem; }
  .tr-map { height: clamp(19rem, 62vh, 26rem); }
  .tr-bars li { grid-template-columns: minmax(0, 1fr) auto; }
  .tr-bar { grid-column: 1 / -1; grid-row: 2; }
  .tr-frames { grid-template-columns: 1fr 1fr; gap: 1.2rem .9rem; }
  .tr-frames .tr-frame:not(.tr-frame-small) { grid-column: 1 / -1; }
  .tr-menu { gap: .9rem; }
  .tr-menu a { font-size: 1.05rem; }
}
@media print {
  .tr-sidebar, .tr-finder, .tr-map { display: none; }
  .tr-shell { display: block; }
}
