/* Style "Editorial" (created 2026-11-04)
   Newspaper front page: newsprint, black ink rules, a red masthead accent, high-contrast
   serif headlines over a serif text face, underlined form fields, square corners. Light scheme.
   Contract: css/ui-styles/templates.css – this file only sets tokens and decoration. */

html[data-ui-style="editorial"] { color-scheme: light; }

html[data-ui-style="editorial"],
html[data-ui-style="editorial"] .page {
    /* Palette */
    --bg-primary: #F5F1E8;
    --bg-secondary: #ECE6D8;
    --bg-surface: #FBF8F1;
    --bg-surface-hover: #F0EBDF;
    --bg-talk-bar: #FBF8F1;
    --bg-talk-bar-hover: #F0EADC;
    --bg-comment-bar: #FBF8F1;
    --text-primary: #141210;
    --text-secondary: #3B3833;
    --text-muted: #5B5750;
    --border: #1A1816;
    --border-light: #CFC8B8;
    --primary: #B3261E;
    --primary-hover: #8E1C16;
    --primary-foreground: #FBF8F1;
    --primary-muted: rgba(179, 38, 30, .08);
    --success: #2F6B3A;
    --warning: #8A5A00;
    --error: #B3261E;
    --info: #2B4C7E;
    --nav-bg: #F5F1E8;
    --nav-border: #1A1816;
    --shadow-color: rgba(20, 18, 16, .08);
    --modal-overlay: rgba(20, 18, 16, .5);
    --ai-color-1: #141210;
    --ai-color-2: #B3261E;
    --ai-color-3: #5B5750;
    --ai-gradient: linear-gradient(135deg, #141210 0%, #5B5750 50%, #B3261E 100%);
    --ai-bg: rgba(20, 18, 16, .05);
    --ai-border: #1A1816;

    /* Type and shape */
    --font-default: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
    --font-display: "Bodoni MT", "Bodoni 72", Didot, "Didot LT STD", "Playfair Display", "Book Antiqua", Georgia, serif;
    --ui-font-ui: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius-control: 0px;
    --radius-panel: 0px;

    /* Element tokens */
    --ui-page-bg: #F5F1E8;
    --ui-heading-weight: 700;
    --ui-heading-tracking: -.02em;
    --ui-heading-line: 1;
    --ui-eyebrow-tracking: .22em;
    --ui-eyebrow-weight: 700;
    --ui-label-color: #141210;
    --ui-label-weight: 700;
    --ui-label-transform: uppercase;
    --ui-label-tracking: .12em;
    --ui-header-border: 4px double #1A1816;
    --ui-logo-font: var(--font-display);
    --ui-logo-weight: 700;
    --ui-logo-mark-color: #B3261E;
    --ui-nav-color: #141210;
    --ui-nav-weight: 700;
    --ui-nav-transform: uppercase;
    --ui-nav-tracking: .14em;
    --ui-nav-radius: 0;
    --ui-nav-hover-bg: transparent;
    --ui-nav-active-bg: transparent;
    --ui-nav-active-color: #B3261E;
    --ui-nav-active-shadow: inset 0 -2px 0 #B3261E;
    --ui-footer-bg: #F5F1E8;
    --ui-footer-border: 4px double #1A1816;
    --ui-link-color: #141210;
    --ui-divider: 1px solid #1A1816;
    --ui-selection-bg: #141210;
    --ui-selection-fg: #F5F1E8;
    --ui-stylebar-bg: #141210;
    --ui-stylebar-fg: #E7E1D3;
    --ui-stylebar-border: 0 solid transparent;
    --ui-stylebar-accent: #E5574E;
    --ui-stylebar-active-bg: #F5F1E8;
    --ui-stylebar-active-fg: #141210;
    --ui-stylebar-active-border: #F5F1E8;
    --ui-surface-bg: #FBF8F1;
    --ui-surface-border: 1px solid #1A1816;
    --ui-modal-shadow: 8px 8px 0 rgba(20, 18, 16, .12);
    --ui-talkbar-border: 1px solid #1A1816;
    --ui-talkbar-hover-shadow: 4px 4px 0 rgba(20, 18, 16, .15);
    --ui-btn-weight: 700;
    --ui-btn-transform: uppercase;
    --ui-btn-tracking: .14em;
    --ui-btn-primary-bg: #141210;
    --ui-btn-primary-fg: #F5F1E8;
    --ui-btn-primary-border: 1px solid #141210;
    --ui-btn-primary-hover-bg: #B3261E;
    --ui-btn-secondary-bg: transparent;
    --ui-btn-secondary-border: 1px solid #141210;
    --ui-btn-secondary-hover-bg: #141210;
    --ui-btn-secondary-hover-fg: #F5F1E8;
    --ui-input-bg: transparent;
    --ui-input-border: 0 solid transparent;
    --ui-input-border-bottom: 1px solid #1A1816;
    --ui-input-radius: 0;
    --ui-input-placeholder: #77726A;
    --ui-input-focus-border-color: #B3261E;
    --ui-input-focus-shadow: inset 0 -1px 0 #B3261E;
    --ui-seg-fg: #3B3833;
    --ui-seg-underline: 1px solid #CFC8B8;
    --ui-seg-radius: 0;
    --ui-seg-transform: uppercase;
    --ui-seg-tracking: .12em;
    --ui-seg-active-fg: #B3261E;
    --ui-seg-active-underline: 3px solid #B3261E;
    --ui-panel-bg: transparent;
    --ui-panel-border: 0 solid transparent;
    --ui-panel-padding: 2.5rem 0 0;
    --ui-fab-bg: #141210;
    --ui-fab-fg: #F5F1E8;
    --ui-fab-border: 1px solid #141210;
    --ui-fab-radius: 0;
    --ui-fab-shadow: 4px 4px 0 rgba(20, 18, 16, .2);
    --ui-badge-bg: #B3261E;
    --ui-badge-radius: 0;
}

/* Masthead: a red rule above the header, the nav in small caps */
html[data-ui-style="editorial"] .page > header { border-top: 3px solid #B3261E; }
html[data-ui-style="editorial"] .page > header .logo { font-size: 2.5rem; letter-spacing: -.03em; }

/* Front-page lead: italic serif deck with a drop cap */
html[data-ui-style="editorial"] .studio-description { font-style: italic; font-size: 1.08rem; }
html[data-ui-style="editorial"] .studio-description::first-letter {
    float: left;
    margin: .08em .1em 0 0;
    color: #B3261E;
    font-family: var(--font-display);
    font-size: 3.4em;
    font-style: normal;
    font-weight: 700;
    line-height: .8;
}
html[data-ui-style="editorial"] .studio-hero { border-bottom-width: 3px; }

/* Section heads underlined by a full-width rule */
html[data-ui-style="editorial"] .studio-form-heading { padding-bottom: .9rem; border-bottom: 1px solid #1A1816; }
html[data-ui-style="editorial"] .section-title { text-transform: uppercase; letter-spacing: .14em; font-family: var(--ui-font-ui); }

/* The waveform art printed in halftone ink */
html[data-ui-style="editorial"] .studio-voice-art { filter: grayscale(1) contrast(1.15); }

.lt-style-chip[data-chip="editorial"] {
    background:
        linear-gradient(#B3261E, #B3261E) 4px 4px / 14px 4px no-repeat,
        linear-gradient(#141210, #141210) 4px 11px / 14px 1.5px no-repeat,
        linear-gradient(#141210, #141210) 4px 14px / 9px 1.5px no-repeat,
        linear-gradient(#141210, #141210) 4px 17px / 12px 1.5px no-repeat,
        #F5F1E8;
    border-radius: 2px;
}
