/* Gratienne's own panel modules, after the shared panel.css. Only what no other panel needs belongs here. */

/* #region Faces */
/* The site's faces, not Odoardo's: Cormorant Garamond for the headings and the figures panel.css sets in the display
   face, Montserrat — the site's sans, which panel.css already declares — for everything read fast. panel.css declares
   Plus Jakarta Sans and Playfair Display too, but a face nothing names is never fetched. Served from /fonts/ like the
   rest (the csproj links Gratienne/assets/fonts into wwwroot). */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/fonts/CormorantGaramond-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Every refusal is said as the site says it: in the reading face, EB Garamond's Regular, upright, at reading size —
       a small medium sans read as a footnote. */
    --fontRefusal: 'EB Garamond', Garamond, Georgia, serif;
    --sizeRefusal: 15px;
    --weightRefusal: var(--weightRegular);
    /* What is typed is the site's too: its fields inherit the reading face, EB Garamond, and only the labels and the
       buttons speak in Montserrat's small capitals. */
    --fontField: 'EB Garamond', Garamond, Georgia, serif;
    --sizeField: 16px;
    --sizeFieldSmall: 15px;
    --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --fontDisplay: 'Cormorant Garamond', Georgia, serif;
    --fontLogo: 'Montserrat', sans-serif;
}

/* Cormorant's regular is a hairline face at a panel's heading sizes; the site sets its headings at 500, and so does the
   panel. */
h1, h2, h3, h4 {
    font-weight: var(--weightMedium);
}

/* Cormorant's figures are old-style by default, and a count or an amount in the display face read as a line of prose
   ("12 400" with a descending 4). The site sets lining figures on every page; the panel does too. */
body {
    font-variant-numeric: lining-nums;
}
/* #endregion */

/* #region Palette */
/* Odoardo's panel turned over: Gratienne is ink on paper — the site's #F5F5F5 ground and #050505 ink — so its panel is
   too, with the same gold for the accents. Only panel.css's tokens are restated: the names keep their roles, so
   --colorDark is the ground and --colorWhite the strongest ink, and the ink on a gold fill stays black. The states, the
   hairlines and the category hues are a step deeper than the dark panel's, because a hue that reads on black thins to
   nothing on paper. */
:root {
    color-scheme: light;

    --colorDark: #f5f5f5;
    --colorSurface: #f5f5f5;
    /* What is typed into and what is pressed stand white on the paper, edged by the gold hairline — never a grey well
       (the owner's remarks of 2026-10-09). */
    --colorField: #ffffff;
    --colorButton: #ffffff;
    --colorSurfaceRaised: #fafafa;
    --colorWhite: #050505;
    --colorLight: #333333;
    --colorText: #1f1f1f;
    --colorMuted: #6e6e6e;
    --colorVeryLight: #050505;
    --colorAccentFaint: rgba(182, 165, 116, 0.12);
    --colorGray: rgba(182, 165, 116, 0.35);
    --colorGrayStrong: rgba(182, 165, 116, 0.6);
    --colorRed: #9b2c2c;
    --colorGreen: #4a7a58;
    --colorBlue: #4a6ea8;
    --colorBar: rgba(245, 245, 245, 0.92);
    --colorVeil: rgba(245, 245, 245, 0.85);
    --colorPlaceholder: #9a9a9a;
    --colorReading: #2e2e2e;
    --colorShadow: rgba(5, 5, 5, 0.12);
    --colorShadowDeep: rgba(5, 5, 5, 0.18);

    --catViolet: rgb(120, 80, 190);
    --catAzure: rgb(40, 105, 195);
    --catTeal: rgb(20, 130, 135);
    --catAmber: rgb(175, 110, 20);
    --catRose: rgb(185, 65, 120);
    --catLime: rgb(90, 135, 30);
    --catRoleCeo: rgb(115, 85, 165);
    --catRoleCoo: rgb(60, 95, 160);
    --catRoleConcierge: rgb(75, 100, 105);
}
/* #endregion */

/* #region Fields */
/* The confirmation dialog's reason field stands on panel.css's ground colour; here it is a field like any other. */
dialog div.dialog-reason textarea {
    background: var(--colorField);
}
/* #endregion */

/* #region Sign-in */
/* The sign-in plate is the case with its card standing on the house's paper (wwwroot/img/signin/plate.webp, a render of
   the Magazyn's own model), not a photograph lit from the middle: panel.css's darkening of its edges would only dirty
   the paper, so it is left out and the plate meets the form on the gold hairline alone. */
.signin-gallery::after {
    content: none;
}

.signin-plate {
    background: var(--colorDark);
}
/* #endregion */

/* #region Reports */
/* A reported photograph is a square JPEG; shown at a size that can be judged without dominating the screen. */
img.report-photo {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
}
/* #endregion */

/* #region Suppliers */
/* Each trade in its hue from the shared category palette, so the list reads down one column. Six hues for eight
   trades, so two pairs share one — the two printers, and the carrier with everybody else — and the word beside the
   mark tells them apart. */
.cat-name.is-supplier-studio {
    --catColor: var(--catAzure);
}

.cat-name.is-supplier-joiner {
    --catColor: var(--catAmber);
}

.cat-name.is-supplier-engraver {
    --catColor: var(--catRose);
}

.cat-name.is-supplier-magnets {
    --catColor: var(--catLime);
}

.cat-name.is-supplier-packaging {
    --catColor: var(--catTeal);
}

.cat-name.is-supplier-bookprinter {
    --catColor: var(--catAzure);
}

.cat-name.is-supplier-carrier {
    --catColor: var(--catViolet);
}

.cat-name.is-supplier-other {
    --catColor: var(--catViolet);
}
/* #endregion */
