/* ==========================================================================
   NET RENTALS — GUIDES
   File: /css/marketing/guides.css

   Direction:
   - Portal-style Guides workspace
   - 100dvh application shell
   - Desktop: guide feed + reading workspace
   - Mobile: feed → article workspace
   - Reusable words + pictures article system
   - Net Rentals navy / orange / white DNA
   ========================================================================== */


/* ==========================================================================
   01 TOKENS
   ========================================================================== */

:root {
    --brand-navy: #0B1E59;
    --brand-orange: #E34A25;
    --brand-orange-hover: #C93F1D;

    --ink: #111317;

    --paper: #FFFFFF;
    --paper-dim: #F8F9FA;
    --paper-soft: #F3F5F7;

    --line: #EAEAEA;
    --line-strong: #DDE1E6;

    --muted: #6B7280;
    --dim: #A5A9B2;

    --success: #197D4D;
    --success-soft: rgba(25, 125, 77, 0.07);

    --blue: #2563EB;
    --blue-soft: rgba(37, 99, 235, 0.07);

    --amber: #A56B00;
    --amber-soft: rgba(165, 107, 0, 0.07);

    --purple: #7C3AED;
    --purple-soft: rgba(124, 58, 237, 0.07);

    --red: #B83A35;
    --red-soft: rgba(184, 58, 53, 0.07);

    --font-head: "Archivo", sans-serif;
    --font-body: "Inter", sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-round: 999px;

    --container-wide: 1180px;

    --topbar-h: 76px;
    --tabs-h: 48px;

    --feed-w: 390px;

    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}


/* ==========================================================================
   02 RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;

    overflow: hidden;

    background: var(--paper);
}

body {
    width: 100%;
    height: 100%;

    margin: 0;
    overflow: hidden;

    background: var(--paper);
    color: var(--ink);

    font-family: var(--font-body);
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--brand-orange);
    color: var(--paper);
}


/* ==========================================================================
   03 APP SHELL
   ========================================================================== */

.field-notes-page {
    height: 100dvh;
}

.field-notes-app {
    width: 100%;
    height: 100dvh;

    overflow: hidden;

    background: var(--paper);
}

.field-notes-shell {
    width: 100%;
    height: 100dvh;

    display: grid;

    grid-template-rows:
        auto
        minmax(0, 1fr);

    overflow: hidden;
}


/* ==========================================================================
   04 TOP BAR
   ========================================================================== */

.field-notes-topbar {
    position: relative;
    z-index: 50;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--line);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.field-notes-topbar-inner {
    width: min(100%, var(--container-wide));
    min-height: var(--topbar-h);

    margin: 0 auto;

    padding:
        max(12px, var(--safe-top))
        24px
        12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}


/* ==========================================================================
   05 BRAND
   ========================================================================== */

.field-notes-brand {
    min-width: 0;

    display: inline-flex;
    align-items: center;

    gap: 14px;

    flex: 0 1 auto;
}

.field-notes-logo {
    width: auto;
    height: 48px;
    max-width: 150px;

    object-fit: contain;

    flex: 0 0 auto;
}

.field-notes-brand-copy {
    min-width: 0;

    display: grid;

    gap: 1px;
}

.field-notes-brand-copy strong {
    overflow: hidden;

    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 700;

    letter-spacing: -0.025em;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-notes-brand-copy span {
    color: var(--muted);

    font-size: 0.71rem;
    font-weight: 500;
}


/* ==========================================================================
   06 TOP BAR ACTIONS
   ========================================================================== */

.field-notes-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    flex: 0 0 auto;
}

.field-notes-topbar-link,
.field-notes-login,
.field-notes-signup {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 13px;

    border-radius: var(--radius-sm);

    font-family: var(--font-head);
    font-size: 0.76rem;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.field-notes-topbar-link {
    color: var(--muted);
}

.field-notes-topbar-link:hover {
    color: var(--brand-navy);
}

.field-notes-login {
    border: 1px solid var(--line);

    background: var(--paper);
    color: var(--brand-navy);
}

.field-notes-login:hover {
    border-color: rgba(227, 74, 37, 0.26);

    background: rgba(227, 74, 37, 0.045);
    color: var(--brand-orange);
}

.field-notes-signup {
    border: 1px solid var(--brand-navy);

    background: var(--brand-navy);
    color: var(--paper);
}

.field-notes-signup:hover {
    border-color: var(--brand-orange);

    background: var(--brand-orange);
}

.field-notes-login:active,
.field-notes-signup:active {
    transform: scale(0.97);
}


/* ==========================================================================
   07 PRIMARY TABS
   ========================================================================== */

.field-notes-tabs {
    width: min(100%, var(--container-wide));
    min-height: var(--tabs-h);

    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: flex-end;

    gap: 28px;

    overflow-x: auto;

    scrollbar-width: none;
}

.field-notes-tabs::-webkit-scrollbar {
    display: none;
}

.field-notes-tab {
    position: relative;

    min-height: var(--tabs-h);

    display: inline-flex;
    align-items: center;

    padding: 0;

    border: 0;

    background: transparent;
    color: var(--muted);

    font-family: var(--font-head);
    font-size: 0.79rem;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition: color 180ms ease;
}

.field-notes-tab:hover {
    color: var(--brand-navy);
}

.field-notes-tab.is-active {
    color: var(--brand-navy);
}

.field-notes-tab.is-active::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 3px;

    border-radius:
        999px
        999px
        0
        0;

    background: var(--brand-orange);
}


/* ==========================================================================
   08 MAIN
   ========================================================================== */

.field-notes-main {
    min-height: 0;

    overflow: hidden;

    background: var(--paper-dim);
}


/* ==========================================================================
   09 DESKTOP WORKSPACE
   ========================================================================== */

.field-notes-workspace {
    width: min(100%, var(--container-wide));
    height: 100%;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        var(--feed-w)
        minmax(0, 1fr);

    overflow: hidden;

    background: var(--paper);

    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
}


/* ==========================================================================
   10 GUIDE FEED
   ========================================================================== */

.field-notes-feed {
    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-rows:
        auto
        minmax(0, 1fr);

    overflow: hidden;

    background: var(--paper);

    border-right: 1px solid var(--line);
}


/* --------------------------------------------------------------------------
   FEED HEADER
   -------------------------------------------------------------------------- */

.field-notes-feed-header {
    padding: 28px 24px 24px;

    border-bottom: 1px solid var(--line);

    background: var(--paper);
}

.field-notes-kicker {
    display: block;

    color: var(--brand-orange);

    font-size: 0.64rem;
    font-weight: 700;

    letter-spacing: 0.15em;
    line-height: 1.2;

    text-transform: uppercase;
}

.field-notes-feed-header h1 {
    margin: 7px 0 0;

    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 600;

    letter-spacing: -0.045em;
    line-height: 1.05;
}

.field-notes-feed-header p {
    max-width: 300px;

    margin: 9px 0 0;

    color: var(--muted);

    font-size: 0.79rem;
    font-weight: 400;
    line-height: 1.55;
}


/* --------------------------------------------------------------------------
   FEED SCROLLER
   -------------------------------------------------------------------------- */

.field-notes-feed-scroll {
    min-height: 0;

    overflow-y: auto;

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(11, 30, 89, 0.13)
        transparent;
}

.field-notes-feed-scroll::-webkit-scrollbar {
    width: 5px;
}

.field-notes-feed-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(11, 30, 89, 0.13);
}


/* --------------------------------------------------------------------------
   FEED SECTIONS
   -------------------------------------------------------------------------- */

.field-notes-feed-section {
    border-bottom: 1px solid var(--line);
}

.field-notes-feed-section:last-child {
    border-bottom: 0;
}

.field-notes-feed-section-label {
    padding: 14px 20px 10px;

    color: var(--dim);

    font-size: 0.61rem;
    font-weight: 700;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


/* ==========================================================================
   11 GUIDE ROW
   ========================================================================== */

.field-note-row {
    position: relative;

    width: 100%;

    display: block;

    padding: 18px 20px;

    border: 0;
    border-top: 1px solid var(--line);

    background: var(--paper);

    text-align: left;

    cursor: pointer;

    transition:
        background 160ms ease,
        box-shadow 160ms ease;
}

.field-note-row:hover {
    background: var(--paper-dim);
}

.field-note-row.is-selected {
    background: var(--paper);

    box-shadow:
        inset
        3px
        0
        0
        var(--brand-orange);
}

.field-note-row.is-selected::after {
    content: "";

    position: absolute;

    top: 22px;
    right: 15px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--brand-orange);
}

.field-note-row[hidden] {
    display: none !important;
}

.field-note-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding-right: 10px;
}

.field-note-row-top time {
    color: var(--dim);

    font-size: 0.64rem;
    font-weight: 600;
}

.field-note-row-title {
    display: block;

    margin-top: 10px;
    padding-right: 14px;

    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;

    letter-spacing: -0.025em;
    line-height: 1.35;
}

.field-note-row-description {
    display: -webkit-box;

    margin: 7px 0 0;

    overflow: hidden;

    color: var(--muted);

    font-size: 0.73rem;
    font-weight: 400;
    line-height: 1.55;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.field-note-row-meta {
    margin-top: 13px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 13px;

    color: var(--dim);

    font-size: 0.62rem;
    font-weight: 600;
}

.field-note-row-meta span + span::before {
    content: "·";

    margin-right: 13px;
}


/* ==========================================================================
   12 GUIDE TYPE LABELS
   ========================================================================== */

.field-note-type {
    min-height: 23px;

    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    border: 1px solid var(--line);
    border-radius: var(--radius-round);

    background: var(--paper);

    color: var(--muted);

    font-size: 0.57rem;
    font-weight: 700;

    letter-spacing: 0.09em;
    line-height: 1;

    text-transform: uppercase;
}

.field-note-type.is-product {
    border-color: rgba(11, 30, 89, 0.15);

    background: rgba(11, 30, 89, 0.05);
    color: var(--brand-navy);
}

.field-note-type.is-patch {
    border-color: rgba(25, 125, 77, 0.18);

    background: var(--success-soft);
    color: var(--success);
}

.field-note-type.is-founder {
    border-color: rgba(227, 74, 37, 0.20);

    background: rgba(227, 74, 37, 0.06);
    color: var(--brand-orange);
}

.field-note-type.is-discussion {
    border-color: rgba(124, 58, 237, 0.18);

    background: var(--purple-soft);
    color: var(--purple);
}


/* ==========================================================================
   13 READING WORKSPACE
   ========================================================================== */

.field-notes-article-workspace {
    position: relative;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    background: var(--paper);
}


/* --------------------------------------------------------------------------
   MOBILE ARTICLE HEADER
   -------------------------------------------------------------------------- */

.field-notes-mobile-article-header {
    display: none;
}


/* --------------------------------------------------------------------------
   ARTICLE SCROLLER
   -------------------------------------------------------------------------- */

.field-notes-article-scroll {
    width: 100%;
    height: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(11, 30, 89, 0.14)
        transparent;

    scroll-behavior: smooth;
}

.field-notes-article-scroll::-webkit-scrollbar {
    width: 6px;
}

.field-notes-article-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(11, 30, 89, 0.14);
}


/* ==========================================================================
   14 ARTICLE
   ========================================================================== */

.field-note-article {
    width: 100%;
    max-width: 790px;

    margin: 0 auto;

    background: var(--paper);
}

.field-note-article[hidden] {
    display: none !important;
}


/* --------------------------------------------------------------------------
   ARTICLE HEADER
   -------------------------------------------------------------------------- */

.field-note-article-header {
    padding: 52px 52px 42px;

    border-bottom: 1px solid var(--line);
}

.field-note-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
}

.field-note-article-meta time {
    color: var(--dim);

    font-size: 0.68rem;
    font-weight: 600;
}

.field-note-article-header h2 {
    max-width: 690px;

    margin: 20px 0 0;

    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    font-weight: 500;

    letter-spacing: -0.055em;
    line-height: 1.02;
}

.field-note-article-intro {
    max-width: 650px;

    margin: 22px 0 0;

    color: var(--muted);

    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
}


/* ==========================================================================
   15 AUTHOR
   ========================================================================== */

.field-note-author {
    margin-top: 30px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.field-note-author-avatar,
.field-note-comment-avatar {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--brand-navy);
    color: var(--paper);

    font-family: var(--font-head);
    font-weight: 700;
}

.field-note-author-avatar {
    width: 38px;
    height: 38px;

    font-size: 0.68rem;

    letter-spacing: 0.05em;
}

.field-note-author > div:last-child {
    min-width: 0;

    display: grid;

    gap: 2px;
}

.field-note-author strong {
    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 0.79rem;
    font-weight: 600;
}

.field-note-author span {
    color: var(--muted);

    font-size: 0.68rem;
}


/* ==========================================================================
   16 ARTICLE BODY
   ========================================================================== */

.field-note-article-body {
    padding: 44px 52px 48px;
}

.field-note-article-body > * {
    max-width: 650px;
}

.field-note-article-body p {
    margin: 0;

    color: #3E4651;

    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.9;
}

.field-note-article-body p + p {
    margin-top: 22px;
}

.field-note-article-body h3 {
    margin: 42px 0 14px;

    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 600;

    letter-spacing: -0.04em;
    line-height: 1.15;
}


/* ==========================================================================
   17 ARTICLE CALLOUT
   ========================================================================== */

.field-note-callout {
    max-width: 650px;

    margin: 40px 0;

    padding: 25px 26px;

    border-left: 3px solid var(--brand-orange);

    background: var(--paper-dim);
}

.field-note-callout span {
    display: block;

    color: var(--brand-orange);

    font-size: 0.62rem;
    font-weight: 700;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.field-note-callout strong {
    display: block;

    margin-top: 9px;

    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 600;

    letter-spacing: -0.025em;
    line-height: 1.5;
}


/* ==========================================================================
   18 ARTICLE ACTIONS
   ========================================================================== */

.field-note-article-actions {
    margin: 0 52px;

    padding: 22px 0 32px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-top: 1px solid var(--line);
}

.field-note-helpful-button,
.field-note-share-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 9px 13px;

    border: 1px solid var(--line);
    border-radius: var(--radius-round);

    background: var(--paper);
    color: var(--muted);

    font-size: 0.72rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.field-note-helpful-button:hover,
.field-note-share-button:hover {
    border-color: rgba(227, 74, 37, 0.28);

    background: rgba(227, 74, 37, 0.045);
    color: var(--brand-orange);
}

.field-note-helpful-button:active,
.field-note-share-button:active {
    transform: scale(0.97);
}

.field-note-helpful-button strong {
    color: var(--brand-navy);

    font-size: 0.71rem;
}


/* ==========================================================================
   19 DISCUSSION
   Kept available if we add comments later.
   ========================================================================== */

.field-note-discussion {
    margin-top: 4px;

    padding: 44px 52px 56px;

    border-top: 1px solid var(--line);

    background: var(--paper-dim);
}

.field-note-discussion-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 24px;
}

.field-note-discussion-header h3 {
    margin: 6px 0 0;

    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 1.45rem;
    font-weight: 600;

    letter-spacing: -0.035em;
}

.field-note-discussion-rule {
    color: var(--muted);

    font-size: 0.68rem;
    font-weight: 500;
}


/* ==========================================================================
   20 COMMENTS
   ========================================================================== */

.field-note-comments {
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--paper);
}

.field-note-comment {
    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr);

    gap: 14px;

    padding: 20px 22px;
}

.field-note-comment + .field-note-comment {
    border-top: 1px solid var(--line);
}

.field-note-comment.is-net-rentals {
    background: rgba(11, 30, 89, 0.025);
}

.field-note-comment-avatar {
    width: 42px;
    height: 42px;

    border: 1px solid var(--line);

    background: var(--paper-soft);
    color: var(--brand-navy);

    font-size: 0.67rem;
}

.field-note-comment.is-net-rentals
.field-note-comment-avatar {
    border-color: var(--brand-navy);

    background: var(--brand-navy);
    color: var(--paper);
}

.field-note-comment-main {
    min-width: 0;
}

.field-note-comment-head {
    min-width: 0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;
}

.field-note-comment-head > div {
    min-width: 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}

.field-note-comment-head strong {
    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
}

.field-note-comment-head time {
    flex: 0 0 auto;

    color: var(--dim);

    font-size: 0.63rem;
    font-weight: 600;
}

.field-note-user-badge {
    min-height: 22px;

    display: inline-flex;
    align-items: center;

    padding: 5px 7px;

    border: 1px solid var(--line);
    border-radius: var(--radius-round);

    background: var(--paper-dim);
    color: var(--muted);

    font-size: 0.53rem;
    font-weight: 700;

    letter-spacing: 0.07em;
    line-height: 1;

    text-transform: uppercase;
}

.field-note-user-badge.is-team {
    border-color: rgba(227, 74, 37, 0.18);

    background: rgba(227, 74, 37, 0.06);
    color: var(--brand-orange);
}

.field-note-comment p {
    margin: 10px 0 0;

    color: #454C55;

    font-size: 0.82rem;
    line-height: 1.7;
}

.field-note-comment-actions {
    margin-top: 13px;

    display: flex;
    align-items: center;

    gap: 14px;
}

.field-note-comment-actions button {
    padding: 0;

    border: 0;

    background: transparent;
    color: var(--muted);

    font-size: 0.64rem;
    font-weight: 600;

    cursor: pointer;

    transition: color 180ms ease;
}

.field-note-comment-actions button:hover {
    color: var(--brand-orange);
}


/* ==========================================================================
   21 COMMENT COMPOSER
   ========================================================================== */

.field-note-composer {
    margin-top: 18px;

    padding: 22px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--paper);
}

.field-note-composer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.field-note-composer-head > div {
    display: grid;

    gap: 3px;
}

.field-note-composer-head strong {
    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
}

.field-note-composer-head span {
    color: var(--muted);

    font-size: 0.72rem;
}

.field-note-composer-label {
    display: block;

    margin-bottom: 7px;

    color: var(--dim);

    font-size: 0.6rem;
    font-weight: 700;

    letter-spacing: 0.11em;

    text-transform: uppercase;
}

.field-note-composer-input {
    width: 100%;
    min-height: 116px;

    display: block;

    padding: 14px 15px;

    resize: vertical;

    border: 1px solid var(--line);
    border-radius: var(--radius-sm);

    outline: none;

    background: var(--paper);
    color: var(--ink);

    font-size: 0.84rem;
    line-height: 1.65;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.field-note-composer-input::placeholder {
    color: var(--dim);
}

.field-note-composer-input:hover {
    border-color: var(--line-strong);
}

.field-note-composer-input:focus {
    border-color: var(--brand-navy);

    box-shadow:
        0
        0
        0
        3px
        rgba(11, 30, 89, 0.07);
}

.field-note-composer-footer {
    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

.field-note-composer-footer > span {
    color: var(--muted);

    font-size: 0.66rem;
}

.field-note-composer-submit {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 15px;

    border: 1px solid var(--brand-navy);
    border-radius: var(--radius-sm);

    background: var(--brand-navy);
    color: var(--paper);

    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.field-note-composer-submit:hover {
    border-color: var(--brand-orange);

    background: var(--brand-orange);
}

.field-note-composer-submit:active {
    transform: scale(0.97);
}


/* ==========================================================================
   22 GUIDE TEXT SECTIONS
   ========================================================================== */

.field-note-guide-section {
    width: 100%;
    max-width: 650px;

    margin: 0;
}

.field-note-guide-section + .field-note-guide-section {
    margin-top: 38px;
}


/* ==========================================================================
   23 FULL-WIDTH GUIDE IMAGE
   ========================================================================== */

.field-note-guide-image {
    width: 100%;
    max-width: 100% !important;

    margin: 36px 0;
    padding: 0;
}

.field-note-guide-image img {
    display: block;

    width: 100%;
    height: auto;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--paper-dim);

    object-fit: cover;
}

.field-note-guide-image figcaption {
    margin-top: 10px;

    color: var(--dim);

    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.5;
}


/* ==========================================================================
   24 GUIDE IMAGE PLACEHOLDER
   ========================================================================== */

.field-note-guide-image-placeholder {
    width: 100%;
    min-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 24px;

    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);

    background:
        linear-gradient(
            135deg,
            var(--paper-dim),
            var(--paper-soft)
        );

    color: var(--dim);

    text-align: center;
}

.field-note-guide-image-placeholder span {
    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.field-note-guide-image-placeholder small {
    max-width: 260px;

    color: var(--muted);

    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.45;
}


/* ==========================================================================
   25 IMAGE + TEXT SPLIT
   ========================================================================== */

.field-note-guide-split {
    width: 100%;
    max-width: 100% !important;

    margin: 42px 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(220px, 0.95fr);

    align-items: center;

    gap: 30px;
}

.field-note-guide-split-media,
.field-note-guide-split-copy {
    min-width: 0;
}

.field-note-guide-split-media img {
    display: block;

    width: 100%;
    height: auto;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--paper-dim);
}

.field-note-guide-split-media
.field-note-guide-image-placeholder {
    min-height: 250px;
}

.field-note-guide-split-copy h3 {
    margin: 10px 0 0;

    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 1.45rem;
    font-weight: 600;

    letter-spacing: -0.04em;
    line-height: 1.15;
}

.field-note-guide-split-copy p {
    margin: 13px 0 0;

    color: #3E4651;

    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.75;
}


/* ==========================================================================
   26 GUIDE CTA
   ========================================================================== */

.field-note-guide-cta {
    width: 100%;
    max-width: 100% !important;

    margin-top: 48px;

    padding: 30px 32px;

    overflow: hidden;

    border: 1px solid rgba(11, 30, 89, 0.10);
    border-radius: var(--radius-md);

    background:
        linear-gradient(
            135deg,
            rgba(11, 30, 89, 0.045),
            rgba(227, 74, 37, 0.035)
        );
}

.field-note-guide-cta h3 {
    max-width: 520px;

    margin: 10px 0 0;

    color: var(--brand-navy);

    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 600;

    letter-spacing: -0.04em;
    line-height: 1.15;
}

.field-note-guide-cta p {
    max-width: 540px;

    margin: 12px 0 0;

    color: var(--muted);

    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.7;
}

.field-note-guide-cta a {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 20px;

    padding: 10px 18px;

    border: 1px solid var(--brand-navy);
    border-radius: var(--radius-sm);

    background: var(--brand-navy);
    color: var(--paper);

    font-family: var(--font-head);
    font-size: 0.76rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.field-note-guide-cta a:hover {
    border-color: var(--brand-orange);

    background: var(--brand-orange);
}

.field-note-guide-cta a:active {
    transform: scale(0.98);
}


/* ==========================================================================
   27 BOTTOM SAFE SPACE
   ========================================================================== */

.field-notes-bottom-space {
    height: max(
        28px,
        var(--safe-bottom)
    );
}


/* ==========================================================================
   28 TABLET
   ========================================================================== */

@media (max-width: 980px) {

    :root {
        --feed-w: 340px;
    }

    .field-notes-topbar-inner {
        padding-right: 20px;
        padding-left: 20px;
    }

    .field-notes-tabs {
        padding-right: 20px;
        padding-left: 20px;
    }

    .field-notes-logo {
        height: 44px;
        max-width: 130px;
    }

    .field-notes-topbar-link {
        display: none;
    }

    .field-note-article-header {
        padding:
            46px
            38px
            38px;
    }

    .field-note-article-body {
        padding:
            40px
            38px
            44px;
    }

    .field-note-article-actions {
        margin-right: 38px;
        margin-left: 38px;
    }

    .field-note-discussion {
        padding:
            40px
            38px
            50px;
    }
}


/* ==========================================================================
   29 MOBILE APP MODE
   ========================================================================== */

@media (max-width: 760px) {

    :root {
        --topbar-h: 66px;
        --tabs-h: 44px;
    }


    /* ----------------------------------------------------------------------
       TOP BAR
       ---------------------------------------------------------------------- */

    .field-notes-topbar-inner {
        min-height: var(--topbar-h);

        padding:
            max(9px, var(--safe-top))
            16px
            9px;

        gap: 12px;
    }

    .field-notes-logo {
        height: 39px;
        max-width: 108px;
    }

    .field-notes-brand {
        gap: 9px;
    }

    .field-notes-brand-copy strong {
        font-size: 0.8rem;
    }

    .field-notes-brand-copy span {
        font-size: 0.65rem;
    }

    .field-notes-topbar-actions {
        gap: 6px;
    }

    .field-notes-login {
        display: none;
    }

    .field-notes-signup {
        min-height: 36px;

        padding: 8px 11px;

        font-size: 0.68rem;
    }


    /* ----------------------------------------------------------------------
       TABS
       ---------------------------------------------------------------------- */

    .field-notes-tabs {
        min-height: var(--tabs-h);

        padding: 0 16px;

        gap: 24px;
    }

    .field-notes-tab {
        min-height: var(--tabs-h);

        font-size: 0.74rem;
    }


    /* ----------------------------------------------------------------------
       WORKSPACE
       ---------------------------------------------------------------------- */

    .field-notes-workspace {
        position: relative;

        display: block;

        width: 100%;
        height: 100%;

        overflow: hidden;

        border-right: 0;
        border-left: 0;
    }


    /* ----------------------------------------------------------------------
       FEED
       ---------------------------------------------------------------------- */

    .field-notes-feed {
        position: absolute;
        inset: 0;

        z-index: 2;

        width: 100%;
        height: 100%;

        border-right: 0;

        transform: translateX(0);

        transition:
            transform
            260ms
            cubic-bezier(0.22, 1, 0.36, 1);
    }

    .field-notes-feed-header {
        padding: 24px 18px 21px;
    }

    .field-notes-feed-header h1 {
        font-size: 1.6rem;
    }

    .field-notes-feed-header p {
        max-width: 320px;

        font-size: 0.76rem;
    }

    .field-notes-feed-section-label {
        padding:
            13px
            18px
            9px;
    }

    .field-note-row {
        min-height: 142px;

        padding:
            17px
            18px;
    }

    .field-note-row-title {
        max-width: 330px;

        font-size: 0.94rem;
    }

    .field-note-row-description {
        max-width: 360px;
    }


    /* ----------------------------------------------------------------------
       ARTICLE WORKSPACE
       ---------------------------------------------------------------------- */

    .field-notes-article-workspace {
        position: absolute;
        inset: 0;

        z-index: 3;

        width: 100%;
        height: 100%;

        display: grid;

        grid-template-rows:
            auto
            minmax(0, 1fr);

        overflow: hidden;

        background: var(--paper);

        transform: translateX(100%);

        transition:
            transform
            280ms
            cubic-bezier(0.22, 1, 0.36, 1);
    }

    .field-notes-app.is-reading
    .field-notes-feed {
        transform: translateX(-22%);
    }

    .field-notes-app.is-reading
    .field-notes-article-workspace {
        transform: translateX(0);
    }


    /* ----------------------------------------------------------------------
       MOBILE ARTICLE HEADER
       ---------------------------------------------------------------------- */

    .field-notes-mobile-article-header {
        position: relative;
        z-index: 5;

        min-height: 54px;

        display: flex;
        align-items: center;

        padding: 7px 14px;

        border-bottom: 1px solid var(--line);

        background: rgba(255, 255, 255, 0.97);

        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .field-notes-mobile-back {
        min-height: 40px;

        display: inline-flex;
        align-items: center;

        gap: 7px;

        padding:
            7px
            9px
            7px
            5px;

        border: 0;
        border-radius: var(--radius-round);

        background: transparent;
        color: var(--brand-navy);

        font-family: var(--font-head);
        font-size: 0.75rem;
        font-weight: 600;

        cursor: pointer;
    }

    .field-notes-mobile-back:hover {
        background: var(--paper-dim);
    }

    .field-notes-mobile-back svg {
        width: 18px;
        height: 18px;
    }


    /* ----------------------------------------------------------------------
       ARTICLE SCROLL
       ---------------------------------------------------------------------- */

    .field-notes-article-scroll {
        min-height: 0;
    }

    .field-note-article {
        max-width: none;
    }


    /* ----------------------------------------------------------------------
       ARTICLE CONTENT
       ---------------------------------------------------------------------- */

    .field-note-article-header {
        padding:
            32px
            20px
            30px;
    }

    .field-note-article-header h2 {
        margin-top: 17px;

        font-size:
            clamp(
                2rem,
                10vw,
                2.85rem
            );
    }

    .field-note-article-intro {
        margin-top: 17px;

        font-size: 0.92rem;
        line-height: 1.72;
    }

    .field-note-author {
        margin-top: 25px;
    }

    .field-note-article-body {
        padding:
            31px
            20px
            38px;
    }

    .field-note-article-body p {
        font-size: 0.92rem;
        line-height: 1.82;
    }

    .field-note-article-body p + p {
        margin-top: 19px;
    }

    .field-note-article-body h3 {
        margin-top: 34px;

        font-size: 1.42rem;
    }

    .field-note-callout {
        margin: 32px 0;

        padding:
            21px
            20px;
    }

    .field-note-callout strong {
        font-size: 1rem;
    }


    /* ----------------------------------------------------------------------
       GUIDE IMAGE
       ---------------------------------------------------------------------- */

    .field-note-guide-section +
    .field-note-guide-section {
        margin-top: 30px;
    }

    .field-note-guide-image {
        margin: 28px 0;
    }

    .field-note-guide-image-placeholder {
        min-height: 220px;

        padding: 20px;
    }


    /* ----------------------------------------------------------------------
       GUIDE SPLIT
       ---------------------------------------------------------------------- */

    .field-note-guide-split {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 20px;

        margin: 32px 0;
    }

    .field-note-guide-split-media
    .field-note-guide-image-placeholder {
        min-height: 220px;
    }

    .field-note-guide-split-copy h3 {
        font-size: 1.3rem;
    }

    .field-note-guide-split-copy p {
        font-size: 0.82rem;
        line-height: 1.7;
    }


    /* ----------------------------------------------------------------------
       GUIDE CTA
       ---------------------------------------------------------------------- */

    .field-note-guide-cta {
        margin-top: 36px;

        padding: 25px 21px;
    }

    .field-note-guide-cta h3 {
        font-size: 1.35rem;
    }

    .field-note-guide-cta p {
        font-size: 0.8rem;
    }

    .field-note-guide-cta a {
        min-height: 43px;

        margin-top: 18px;
    }


    /* ----------------------------------------------------------------------
       ARTICLE ACTIONS
       ---------------------------------------------------------------------- */

    .field-note-article-actions {
        margin:
            0
            20px;

        padding:
            20px
            0
            28px;
    }


    /* ----------------------------------------------------------------------
       DISCUSSION
       ---------------------------------------------------------------------- */

    .field-note-discussion {
        padding:
            34px
            18px
            calc(
                42px +
                var(--safe-bottom)
            );
    }

    .field-note-discussion-header {
        align-items: flex-start;

        margin-bottom: 19px;
    }

    .field-note-discussion-rule {
        display: none;
    }

    .field-note-comment {
        grid-template-columns:
            36px
            minmax(0, 1fr);

        gap: 11px;

        padding:
            17px
            16px;
    }

    .field-note-comment-avatar {
        width: 36px;
        height: 36px;

        font-size: 0.6rem;
    }

    .field-note-comment-head {
        gap: 10px;
    }

    .field-note-comment p {
        font-size: 0.79rem;
    }


    /* ----------------------------------------------------------------------
       COMPOSER
       ---------------------------------------------------------------------- */

    .field-note-composer {
        padding: 18px 16px;
    }

    .field-note-composer-head {
        margin-bottom: 17px;
    }

    .field-note-composer-input {
        min-height: 108px;
    }

    .field-note-composer-footer {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .field-note-composer-submit {
        width: 100%;
        min-height: 44px;
    }
}


/* ==========================================================================
   30 SMALL MOBILE
   ========================================================================== */

@media (max-width: 390px) {

    .field-notes-topbar-inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    .field-notes-brand-copy {
        display: grid;
    }

    .field-notes-tabs {
        padding-right: 14px;
        padding-left: 14px;

        gap: 21px;
    }

    .field-notes-feed-header,
    .field-note-row {
        padding-right: 16px;
        padding-left: 16px;
    }

    .field-note-article-header,
    .field-note-article-body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .field-note-article-actions {
        margin-right: 18px;
        margin-left: 18px;
    }

    .field-note-discussion {
        padding-right: 16px;
        padding-left: 16px;
    }

    .field-note-guide-image-placeholder,
    .field-note-guide-split-media
    .field-note-guide-image-placeholder {
        min-height: 190px;
    }

    .field-note-guide-cta {
        padding:
            22px
            18px;
    }

    .field-note-guide-cta h3 {
        font-size: 1.25rem;
    }
}


/* ==========================================================================
   31 SHORT DESKTOP VIEWPORTS
   ========================================================================== */

@media (max-height: 700px) and (min-width: 761px) {

    :root {
        --topbar-h: 66px;
        --tabs-h: 42px;
    }

    .field-notes-logo {
        height: 42px;
    }

    .field-notes-feed-header {
        padding-top: 21px;
        padding-bottom: 19px;
    }

    .field-note-article-header {
        padding-top: 38px;
        padding-bottom: 34px;
    }
}


/* ==========================================================================
   32 ACCESSIBILITY
   ========================================================================== */

.field-notes-brand:focus-visible,
.field-notes-topbar-link:focus-visible,
.field-notes-login:focus-visible,
.field-notes-signup:focus-visible,
.field-notes-tab:focus-visible,
.field-note-row:focus-visible,
.field-notes-mobile-back:focus-visible,
.field-note-helpful-button:focus-visible,
.field-note-share-button:focus-visible,
.field-note-comment-actions button:focus-visible,
.field-note-composer-submit:focus-visible,
.field-note-guide-cta a:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 3px;
}

.field-note-composer-input:focus-visible {
    outline: none;
}


/* ==========================================================================
   33 REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .field-notes-feed,
    .field-notes-article-workspace,
    .field-notes-topbar-link,
    .field-notes-login,
    .field-notes-signup,
    .field-notes-tab,
    .field-note-row,
    .field-note-helpful-button,
    .field-note-share-button,
    .field-note-composer-submit,
    .field-note-guide-cta a {
        transition-duration: 0.001ms !important;
    }

    .field-notes-article-scroll {
        scroll-behavior: auto;
    }
}