/* Field Notes — narrow central column (~8 words), in-column key visual, rows start on the type */

.fn-pager,
.fn-rail {
    display: none !important;
}

.page-content.page-field-notes {
    padding-top: 120px;
    padding-bottom: 140px;
    -webkit-font-smoothing: antialiased;
    --fn-measure: 28rem;
    --fn-gutter: 24px;
    --fn-col-start: max(var(--fn-gutter), calc((100vw - var(--fn-measure)) / 2));
}

/* Take pages: heroes flush to edges so the fixed nav can sit on the image */
.page-content.page-field-notes:not(.is-fn-overview) {
    padding-top: 0;
}

.page-content.page-field-notes.is-fn-take > .fn-take > .fn-hero {
    width: 100%;
    max-width: none;
    margin: 0 0 2.75rem;
}

.page-content.page-field-notes.is-fn-take > .fn-take > .fn-hero .fn-hero-frame {
    border-radius: 0;
    outline: none;
}

/* Overview: optically center intro + take row in the viewport */
.page-content.page-field-notes.is-fn-overview {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: block;
    padding-top: 0;
    padding-bottom: 0;
}

.fn-overview {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

/* Intro sits in the same centered column as the first take card */
.fn-index-intro {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0 0 1.75rem;
    padding: 0 var(--fn-gutter);
    text-align: center;
}

.fn-index-intro .fn-lede {
    color: rgb(153, 153, 153);
    width: min(20rem, var(--fn-measure));
    max-width: 100%;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.45;
    text-wrap: pretty;
    text-align: left;
}

/* Field Notes imagery stays in full color */
.page-field-notes .fn-take-card-frame img,
.page-field-notes .fn-hero-frame img,
.page-field-notes .fn-row-frame img,
.fn-takes-panel .fn-take-card-frame img {
    filter: none;
}

.fn-serif {
    font-family: 'HaasGrotTextR-55Roman', Helvetica, Arial, sans-serif;
}

.fn-index,
.fn-body,
.fn-take-title,
.fn-sources,
.fn-pager,
.fn-rail,
.fn-insert-hint {
    width: min(var(--fn-measure), calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.fn-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hide take-level kickers if present; overview intro keeps its kicker */
.fn-take .fn-kicker,
.fn-body .fn-kicker {
    display: none !important;
}

.fn-kicker,
.fn-takes-kicker,
.fn-take-kicker,
.fn-rail-meta,
.fn-pager-label,
.fn-sources h2 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgb(153, 153, 153);
    margin: 0;
    text-wrap: balance;
}

.fn-index-heading,
.fn-take-title,
.fn-index-title,
.fn-takes-title,
.fn-takes-head h2 {
    font-family: 'HaasGrotTextR-55Roman', Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-wrap: balance;
}

.fn-index-heading {
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0.85rem 0 1rem;
}

.fn-lede {
    font-family: 'HaasGrotTextR-55Roman', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    color: #363636;
    margin: 0;
    text-wrap: pretty;
}

.fn-index-list,
.fn-takes-list,
.fn-take-row {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fn-take-row {
    display: flex;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--fn-gutter);
    justify-content: safe center;
    padding: 0 var(--fn-gutter) 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.fn-take-row::-webkit-scrollbar {
    display: none;
}

/* Overview: first take centered in the viewport (not left-edge like in-take image rows) */
.page-field-notes.is-fn-overview .fn-take-row {
    --fn-card-half: min(10rem, calc(var(--fn-measure) / 2));
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: max(var(--fn-gutter), calc(50% - var(--fn-card-half)));
    padding-right: max(var(--fn-gutter), calc(50% - var(--fn-card-half)));
    scroll-padding-inline: max(var(--fn-gutter), calc(50% - var(--fn-card-half)));
    scroll-snap-type: x mandatory;
}

.page-field-notes.is-fn-overview .fn-take-card {
    scroll-snap-align: center;
}

.fn-takes-panel .fn-take-row {
    justify-content: safe center;
    padding-left: var(--fn-gutter);
    padding-right: var(--fn-gutter);
    scroll-padding-inline-start: var(--fn-gutter);
}

.fn-take-card {
    position: relative;
    flex: 0 0 auto;
    width: min(20rem, var(--fn-measure));
    margin: 0;
    scroll-snap-align: center;
}

.fn-take-card-link {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    transition-property: opacity;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.fn-take-card-link:hover {
    opacity: 0.55;
}

.fn-take-card.is-hidden .fn-take-card-link {
    opacity: 0.38;
}

.fn-take-card-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2px;
    background: #f4f4f4;
    outline: 1px solid rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
}

.fn-take-card-frame img,
.fn-hero-frame img,
.fn-row-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fn-index-num,
.fn-takes-num {
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    letter-spacing: 0.01em;
    color: rgb(153, 153, 153);
    font-family: Helvetica, Arial, sans-serif;
}

.fn-index-title,
.fn-takes-title {
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 0;
    display: block;
    font-weight: 400;
    text-wrap: pretty;
    max-width: 100%;
}

/* Legacy: cards now use a single caption line in .fn-takes-title */
.fn-takes-dek {
    display: none;
}

.fn-take-card.is-current .fn-takes-title {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fn-card-fields {
    display: none;
}

.fn-card-line {
    margin: 0.15rem 0 0;
    font-family: 'HaasGrotTextR-55Roman', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    text-wrap: pretty;
}

.fn-take-card.is-editing-copy .fn-takes-title[data-fn-card-display],
.fn-take-card.is-editing-copy [data-fn-card-display] {
    display: none !important;
}

.fn-take-card-link.is-edit-blocked {
    cursor: default;
    pointer-events: none;
}

body.fn-editing-overview .fn-lede[data-fn-overview-lede],
body.fn-editing-overview .fn-card-line {
    outline: 1px dashed rgba(0, 0, 0, 0.18);
    outline-offset: 4px;
}

body.fn-editing-overview .fn-overview {
    z-index: 3;
}

.fn-hidden-pill {
    display: inline-block;
    margin-left: 0.45rem;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #fff;
    background: #000;
    border-radius: 10px;
    padding: 2px 6px;
    vertical-align: middle;
}

.fn-vis-toggle {
    appearance: none;
    background: transparent;
    border: 0;
    min-height: 40px;
    min-width: 40px;
    padding: 8px 0;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgb(153, 153, 153);
    cursor: pointer;
    transition-property: color, opacity, transform;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

body:has(.fn-admin-bar) .is-fn-overview .fn-take-card {
    cursor: grab;
}

body:has(.fn-admin-bar) .is-fn-overview .fn-take-card.is-dragging {
    cursor: grabbing;
    opacity: 0.55;
    z-index: 2;
}

body:has(.fn-admin-bar) .is-fn-overview .fn-take-card.is-dragging .fn-take-card-link {
    pointer-events: none;
}

.fn-vis-toggle:hover {
    color: #000;
}

.fn-vis-toggle:active {
    transform: scale(0.96);
}

.fn-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.fn-rail-meta {
    letter-spacing: 0.01em;
}

.fn-take-num,
.fn-rail-of {
    font-variant-numeric: tabular-nums;
}

.fn-all-takes,
.fn-pager-all,
.fn-takes-close {
    appearance: none;
    background: transparent;
    border: 0;
    min-height: 40px;
    padding: 8px 0;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    transition-property: opacity, transform;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.fn-all-takes:hover,
.fn-pager-all:hover,
.fn-takes-close:hover {
    opacity: 0.45;
}

.fn-all-takes:active,
.fn-pager-all:active,
.fn-takes-close:active {
    transform: scale(0.96);
}

.fn-hero {
    width: min(86rem, calc(100vw - 48px));
    margin: 0 auto 2.75rem;
}

.fn-hero-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2px;
    background: #f4f4f4;
    outline: 1px solid rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
}

.fn-hero.is-empty .fn-hero-frame {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fn-hero-placeholder {
    font-size: 12px;
    color: rgb(153, 153, 153);
    letter-spacing: 0.04em;
}

.fn-row-caption {
    margin: 0.7rem 0 0;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    color: rgb(120, 120, 120);
    text-wrap: pretty;
}

.fn-take,
.fn-body {
    overflow: visible;
}

.fn-body {
    font-family: 'HaasGrotTextR-55Roman', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    color: #111;
}

.fn-body p,
.fn-body li {
    text-wrap: pretty;
    margin: 0 0 1.05em;
}

.fn-body ul {
    margin: 0 0 1.05em;
    padding-left: 1.2em;
}

.fn-body blockquote {
    margin: 1.35em 0;
    padding: 0;
    border: 0;
    font-size: 18px;
    line-height: 1.45;
    color: #111;
    text-wrap: pretty;
}

.fn-body blockquote p {
    margin: 0;
}

.fn-take-title,
.fn-body h1 {
    font-family: 'HaasGrotTextR-55Roman', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-align: center;
    text-wrap: balance;
    color: #111;
    width: min(var(--fn-measure), calc(100% - 48px));
    margin: 1.25em auto 1.35em;
}

.fn-slug-edit {
    width: min(var(--fn-measure), calc(100% - 48px));
    margin: -0.85em auto 1.5em;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: rgb(153, 153, 153);
    text-align: center;
}

.fn-slug-value {
    color: #111;
    outline: none;
}

body.fn-editing .fn-slug-value {
    outline: 1px dashed rgba(0, 0, 0, 0.18);
    outline-offset: 3px;
    padding: 0 2px;
}

.fn-body h1 {
    margin: 2em auto 0.85em;
}

/* In-column section headlines — Edit → Headline */
.fn-body h2,
.fn-body h2.fn-headline,
.fn-body .fn-headline {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 2.1em 0 0.9em;
    padding: 0;
    font-family: 'HaasGrotTextR-55Roman', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-align: center;
    text-wrap: balance;
    color: #111;
}

.fn-body h3 {
    font-family: 'HaasGrotTextR-55Roman', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 2em 0 0.65em;
    text-align: center;
    text-wrap: balance;
}

.fn-body .fn-term {
    font-style: italic;
    font-weight: 400;
    background-image: none;
}

/* Stay in the text column on the left (Molly: start in the middle).
   Only the track grows to the right edge — never the left viewport edge. */
.fn-body .fn-row,
.fn-take > .fn-row {
    width: 100%;
    max-width: none;
    margin: 2.4rem 0 2.6rem;
    position: relative;
    left: auto;
    transform: none;
    overflow: visible;
}

.fn-row-track {
    display: flex;
    gap: 12px;
    box-sizing: border-box;
    width: calc(50vw + 50%);
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: 0;
    padding: 0 var(--fn-gutter) 8px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.fn-row-track::-webkit-scrollbar {
    display: none;
}

.fn-row-card {
    flex: 0 0 auto;
    width: 18rem;
    max-width: min(18rem, calc(100vw - 48px));
    margin: 0;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.fn-row-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2px;
    background: #f4f4f4;
    outline: 1px solid rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
}

.fn-row-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

body:has(.fn-admin-bar) .fn-row-card {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

body:has(.fn-admin-bar) .fn-row-card:active,
.fn-row-card.is-dragging {
    cursor: grabbing;
}

body:has(.fn-admin-bar) .fn-row-frame img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.fn-row-card.is-dragging {
    opacity: 0.55;
    z-index: 2;
}

body:has(.fn-row-card.is-dragging) .fn-row-track {
    scroll-snap-type: none;
}

.fn-row-toolbar {
    display: none;
    width: 100%;
    margin: 0 0 0.65rem;
    gap: 8px;
}

body.fn-editing .fn-row-toolbar,
body:has(.fn-admin-bar) .fn-row-toolbar {
    display: flex;
}

.fn-row-toolbar button,
.fn-insert-hint {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgb(153, 153, 153);
}

.fn-row-toolbar button {
    appearance: none;
    background: transparent;
    border: 0;
    min-height: 40px;
    padding: 8px 0;
    cursor: pointer;
}

.fn-insert-hint {
    display: none;
    margin-top: 1.5rem;
}

body.fn-editing .fn-insert-hint,
body:has(.fn-admin-bar) .fn-insert-hint {
    display: block;
}

.fn-sources {
    margin-top: 3.75rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fn-sources h2 {
    margin: 0 0 0.9rem;
    font-weight: 400;
}

.fn-sources ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fnsrc;
}

.fn-sources li {
    counter-increment: fnsrc;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 0.45rem;
    padding-left: 1.6rem;
    position: relative;
    text-wrap: pretty;
}

.fn-sources li::before {
    content: counter(fnsrc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    color: rgb(153, 153, 153);
}

.fn-sources a {
    color: #000;
    text-decoration: none;
    transition-property: opacity;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.fn-sources a:hover {
    opacity: 0.45;
}

.fn-take + .fn-take {
    margin-top: 7.5rem;
    padding-top: 0.25rem;
}

.fn-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 1.5rem;
    margin-top: 3.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fn-pager a {
    color: #000;
    text-decoration: none;
    font-family: 'HaasGrotTextR-55Roman', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    min-height: 40px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    transition-property: opacity;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.fn-pager a:hover {
    opacity: 0.45;
}

.fn-pager-next {
    text-align: right;
    align-items: flex-end;
}

.fn-pager-all {
    justify-self: center;
}

.fn-takes-overlay {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    --fn-measure: 28rem;
    --fn-gutter: 24px;
    --fn-col-start: max(var(--fn-gutter), calc((100vw - var(--fn-measure)) / 2));
}

.fn-takes-overlay[hidden] {
    display: none;
}

body.fn-takes-open {
    overflow: hidden;
}

.fn-takes-scrim {
    display: none;
}

.fn-takes-panel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    padding: 0 0 24px;
}

.fn-takes-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem;
    align-items: end;
    width: min(var(--fn-measure), calc(100% - 48px));
    margin: 0 auto 2rem;
}

.fn-takes-kicker {
    grid-column: 1;
}

.fn-takes-head h2 {
    grid-column: 1;
    font-size: 32px;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.05;
}

.fn-takes-close {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.fn-admin-bar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #000;
    color: #fff;
    border-radius: 22px;
    padding: 6px 8px 6px 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.fn-admin-bar button,
.fn-admin-bar a {
    appearance: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.02em;
    padding: 8px 10px;
    min-height: 40px;
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition-property: opacity, transform, background-color;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.fn-admin-bar button:hover,
.fn-admin-bar a:hover {
    opacity: 0.7;
}

.fn-admin-bar button:active,
.fn-admin-bar a:active {
    transform: scale(0.96);
}

.fn-admin-bar button.is-on {
    background: rgba(255, 255, 255, 0.14);
}

.fn-admin-status {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    padding: 0 8px;
    font-variant-numeric: tabular-nums;
}

body.fn-editing .fn-take.is-edit-dimmed {
    pointer-events: none;
    user-select: none;
    opacity: 0.28;
}

body.fn-editing .fn-take.is-editing {
    position: relative;
    z-index: 2;
}

body.fn-editing .fn-take-title,
body.fn-editing .fn-take-dek,
body.fn-editing .fn-take-kicker,
body.fn-editing .fn-body,
body.fn-editing .fn-caption,
body.fn-editing .fn-row-caption {
    outline: 1px dashed rgba(0, 0, 0, 0.18);
    outline-offset: 4px;
}

.fn-hero-replace {
    display: none;
}

.fn-media-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.55rem;
    flex-wrap: wrap;
}

.fn-media-bar button,
.fn-card-tools button {
    appearance: none;
    background: transparent;
    border: 0;
    min-height: 40px;
    padding: 8px 0;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgb(153, 153, 153);
    cursor: pointer;
    transition-property: color, transform, opacity;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.fn-media-bar button:hover,
.fn-card-tools button:hover {
    color: #000;
}

.fn-media-bar button:active,
.fn-card-tools button:active {
    transform: scale(0.96);
}

.fn-drop-hint {
    font-size: 11px;
    color: rgb(180, 180, 180);
    letter-spacing: 0.02em;
}

body:has(.fn-admin-bar) .fn-hero-frame {
    cursor: pointer;
}

.fn-row.is-drop .fn-row-track {
    outline: 1px dashed rgba(0, 0, 0, 0.35);
    outline-offset: 6px;
}

.fn-card-tools {
    display: none;
    gap: 10px;
    margin-top: 0.2rem;
}

body:has(.fn-admin-bar) .fn-card-tools {
    display: flex;
}

.fn-row-empty {
    display: none;
    min-height: 120px;
    min-width: min(22rem, 78vw);
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    color: rgb(153, 153, 153);
    padding: 16px;
    text-align: center;
}

body:has(.fn-admin-bar) .fn-row-track:empty + .fn-row-empty,
body:has(.fn-admin-bar) .fn-row-track:not(:has(.fn-row-card)) .fn-row-empty {
    display: flex;
}

.fn-source-editor {
    display: none;
    margin-top: 0.75rem;
}

body.fn-editing .fn-source-editor {
    display: block;
}

.fn-source-editor textarea {
    width: 100%;
    min-height: 8rem;
    font: 12px/1.45 Helvetica, Arial, sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 10px;
    resize: vertical;
}

@media (prefers-reduced-motion: no-preference) {
    .fn-index-intro,
    .fn-take-card,
    .fn-hero,
    .fn-take-title,
    .fn-body,
    .fn-rail {
        animation: mifbEnterUp 420ms cubic-bezier(0.2, 0, 0, 1) both;
    }
    .fn-rail { animation-delay: 40ms; }
    .fn-index-intro { animation-delay: 80ms; }
    .fn-take-card:nth-child(1) { animation-delay: 140ms; }
    .fn-take-card:nth-child(2) { animation-delay: 180ms; }
    .fn-take-card:nth-child(3) { animation-delay: 220ms; }
    .fn-take-card:nth-child(4) { animation-delay: 260ms; }
    .fn-take-card:nth-child(5) { animation-delay: 300ms; }
    .fn-take-card:nth-child(6) { animation-delay: 340ms; }
    .fn-take-card:nth-child(7) { animation-delay: 380ms; }
    .fn-take-card:nth-child(n + 8) { animation-delay: 400ms; }
    .fn-hero { animation-delay: 80ms; }
    .fn-take-title { animation-delay: 120ms; }
    .fn-body { animation-delay: 160ms; }
    .fn-take + .fn-take .fn-hero,
    .fn-take + .fn-take .fn-take-title,
    .fn-take + .fn-take .fn-body,
    .fn-take + .fn-take .fn-rail {
        animation: none;
    }
}

@media (max-width: 768px) {
    .page-content.page-field-notes {
        --fn-measure: calc(100% - 40px);
        --fn-gutter: 20px;
    }
    .fn-index,
    .fn-body,
    .fn-take-title,
    .fn-sources,
    .fn-pager,
    .fn-rail,
    .fn-insert-hint {
        width: var(--fn-measure);
    }
    .fn-hero {
        width: calc(100vw - 40px);
    }
    .page-content.page-field-notes.is-fn-take > .fn-take > .fn-hero {
        width: 100%;
    }
    .fn-hero-frame {
        aspect-ratio: 4 / 3;
    }
    .fn-lede {
        font-size: 18px;
    }
    .fn-body {
        font-size: 18px;
    }
    .fn-pager {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .fn-pager-next,
    .fn-pager-all {
        text-align: left;
        justify-self: start;
        align-items: flex-start;
    }
    .fn-admin-bar {
        width: calc(100% - 24px);
        justify-content: flex-start;
        overflow-x: auto;
        bottom: 12px;
    }
    .fn-takes-overlay {
        --fn-measure: calc(100% - 40px);
        --fn-gutter: 20px;
    }
    .fn-takes-head {
        width: calc(100% - 40px);
        margin-bottom: 1.5rem;
    }
}

body.dark-background .fn-kicker,
body.dark-background .fn-index-num,
body.dark-background .fn-row-caption,
body.dark-background .fn-sources h2,
body.dark-background .fn-pager-label,
body.dark-background .fn-takes-dek,
body.dark-background .fn-index-intro .fn-lede {
    color: rgba(255, 255, 255, 0.45);
}
body.dark-background .fn-vis-toggle {
    color: rgba(255, 255, 255, 0.55);
}

body.dark-background .fn-sources,
body.dark-background .fn-pager {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-background .fn-hero-frame,
body.dark-background .fn-take-card-frame,
body.dark-background .fn-row-frame {
    outline-color: rgba(255, 255, 255, 0.1);
}

body.dark-background .fn-sources a,
body.dark-background .fn-pager a,
body.dark-background .fn-take-card-link,
body.dark-background .fn-all-takes,
body.dark-background .fn-pager-all,
body.dark-background .fn-takes-close,
body.dark-background .fn-lede,
body.dark-background .fn-take-title,
body.dark-background .fn-body h1,
body.dark-background .fn-body h2,
body.dark-background .fn-body .fn-headline,
body.dark-background .fn-body h3 {
    color: #fff;
}

body.dark-background .fn-takes-overlay,
body.dark-background .fn-takes-panel {
    background: #111;
    color: #fff;
}

/* Nav over a dark take hero — invert for legibility (does not flip page chrome) */
body.fn-nav-on-dark .main-nav:not(.first-visit) .nav-links a:not(.active):not([aria-current="page"]) {
    color: rgba(255, 255, 255, 0.72) !important;
}

body.fn-nav-on-dark .main-nav .nav-links a.active,
body.fn-nav-on-dark .main-nav .nav-links a[aria-current="page"] {
    color: #fff !important;
    opacity: 0.55;
}

body.fn-nav-on-dark .main-nav .nav-links a:hover:not(.active):not([aria-current="page"]) {
    color: #fff !important;
    opacity: 1 !important;
}

body.fn-nav-on-dark .main-nav .nav-links a.active:hover,
body.fn-nav-on-dark .main-nav .nav-links a[aria-current="page"]:hover {
    opacity: 1;
}

body.fn-nav-on-dark .main-nav #projectCount,
body.fn-nav-on-dark .main-nav #imageCount,
body.fn-nav-on-dark .main-nav #fieldNotesCount {
    background: #fff !important;
    color: #000 !important;
}

body.fn-nav-on-dark .main-nav .nav-links a.active #projectCount,
body.fn-nav-on-dark .main-nav .nav-links a.active #imageCount,
body.fn-nav-on-dark .main-nav .nav-links a.active #fieldNotesCount,
body.fn-nav-on-dark .main-nav .nav-links a[aria-current="page"] #projectCount,
body.fn-nav-on-dark .main-nav .nav-links a[aria-current="page"] #imageCount,
body.fn-nav-on-dark .main-nav .nav-links a[aria-current="page"] #fieldNotesCount {
    background: #fff !important;
    color: #000 !important;
}
