/* Pepparprovning – stil "Botanisk akvarell":
   ljust och luftigt, akvarellfläckar i salvia, rosépeppar och terrakotta, tecknade kvistar,
   mjuka former. Rubriker i Fraunces, brödtext i Nunito Sans (båda ligger i wwwroot/fonts). */

/* ---------- Typsnitt ---------- */
@font-face {
    font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url("../fonts/fraunces.woff2") format("woff2");
}
@font-face {
    font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap;
    src: url("../fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("../fonts/nunito-sans.woff2") format("woff2");
}
@font-face {
    font-family: "Nunito Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
    src: url("../fonts/nunito-sans-italic.woff2") format("woff2");
}

/* ---------- Färger och former ---------- */
:root {
    --bg: #fbf7f1;
    --surface: #ffffff;
    --text: #2e3529;
    --muted: #7b8272;
    --border: #e8e1d4;
    --accent: #b4513a;        /* terrakotta */
    --accent-dark: #8f3d2a;
    --accent-soft: #f8e6df;
    --sage: #7f9a6f;          /* salvia */
    --sage-dark: #3f5534;
    --sage-soft: #e9efe2;
    --rose: #d68797;          /* rosépeppar */
    --ok: #5f7f4f;
    --danger: #b23a2e;
    --radius: 20px;
    --radius-small: 14px;
    --shadow: 0 1px 2px rgba(46, 53, 41, .05), 0 6px 18px rgba(46, 53, 41, .06);
    --display: "Fraunces", Georgia, serif;
    --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Kvist med rosépeppar, tecknad med tunn linje */
    --sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140'%3E%3Cg fill='none' stroke='%237f9a6f' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M8 130C60 110 110 80 150 20'/%3E%3Cpath d='M60 108c-6-20 2-38 20-46 4 20-4 38-20 46z' fill='%23e9efe2'/%3E%3Cpath d='M96 84c18-8 38-4 50 10-18 8-38 4-50-10z' fill='%23e9efe2'/%3E%3Cpath d='M118 56c-4-18 4-34 20-40 2 18-6 34-20 40z' fill='%23e9efe2'/%3E%3Cpath d='M150 20c6 4 14 4 20 0M150 20c2 8 0 14-6 18'/%3E%3C/g%3E%3Cg fill='%23d68797' stroke='%23b4513a' stroke-width='.8'%3E%3Ccircle cx='170' cy='20' r='4.5'/%3E%3Ccircle cx='178' cy='28' r='4'/%3E%3Ccircle cx='166' cy='30' r='4.2'/%3E%3Ccircle cx='175' cy='38' r='3.6'/%3E%3Ccircle cx='144' cy='40' r='3.8'/%3E%3Ccircle cx='160' cy='12' r='3.4'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.45;
    color: var(--text);
    /* Akvarellfläckar */
    background:
        radial-gradient(circle at 92% 8%, rgba(214, 135, 151, .20) 0, transparent 26%),
        radial-gradient(circle at 4% 22%, rgba(127, 154, 111, .18) 0, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(180, 81, 58, .08) 0, transparent 30%),
        radial-gradient(circle at 10% 95%, rgba(127, 154, 111, .14) 0, transparent 28%),
        var(--bg);
    background-attachment: fixed;
}

a { color: var(--accent); }

h1, h2, .brand, .main-tabs a, .share-code, .highlight strong, .latin {
    font-family: var(--display);
    font-variant-numeric: lining-nums; /* Fraunces har annars gammaldags siffror (t.ex. i delningskoden) */
}
h1 { font-size: 2.35rem; font-weight: 600; line-height: 1.05; letter-spacing: -.3px; margin: .4em 0 .3em; }
h2 { font-size: 1.4rem; font-weight: 600; font-style: italic; color: var(--accent-dark); margin: 1.2em 0 .3em; }

.container { max-width: 720px; margin: 0 auto; padding: 12px 16px 48px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.latin { font-style: italic; color: var(--sage); margin: 0; }
.error { color: var(--danger); font-size: .9rem; }
.error ul { margin: 0; padding-inline-start: 1.2em; }
.inline { display: inline; margin: 0; }

/* ---------- Sidhuvud: ljus rad med logga, kvist och meny, sedan huvudflikar. Klistrat högst upp. ---------- */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(251, 247, 241, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(46, 53, 41, .06);
}
/* Samma bredd som innehållet, så att logga och flikar linjerar med sidan. */
.bar-inner { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.topbar .bar-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: 60px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); text-decoration: none; font-size: 1.55rem; font-weight: 600; font-style: italic;
}
/* Samma bredd som första huvudfliken, så att "Peppar" står mitt över "Provningar". */
.brand { flex: 0 0 calc((100% - 8px) / 2); justify-content: center; }
/* Kvisten står centrerad över fliken Sorter och sträcker sig ner bakom den.
   Flikarna är halvgenomskinliga så att kvisten syns igenom. */
.main-tabs .bar-inner { position: relative; }
.main-tabs .bar-inner::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    left: calc(16px + (100% - 32px - 8px) * .75 + 8px); bottom: 2px; transform: translateX(-50%);
    width: 150px; height: 105px; background: var(--sprig) no-repeat center / contain;
}
/* Höger till vänster: Sorter-fliken ligger till vänster. */
[dir="rtl"] .main-tabs .bar-inner::before { left: calc(16px + (100% - 32px - 8px) * .25); }
.main-tabs a { position: relative; z-index: 1; }
.menu-panel { z-index: 20; }

/* Prickmeny */
.menu { position: relative; }
.menu summary {
    list-style: none; cursor: pointer;
    display: grid; place-items: center; width: 40px; height: 40px; margin-inline-end: -8px;
    border-radius: 50%; color: var(--text);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: rgba(46, 53, 41, .07); }
.menu summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.menu-panel {
    position: absolute; inset-inline-end: -4px; top: calc(100% + 6px); min-width: 220px;
    background: var(--surface); color: var(--text);
    border-radius: var(--radius-small);
    box-shadow: 0 8px 28px rgba(46, 53, 41, .18);
    padding: 6px; display: flex; flex-direction: column;
}
.menu-user { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-item {
    display: block; width: 100%; text-align: start;
    padding: 10px; border-radius: 10px; border: 0; background: none;
    font: inherit; color: var(--text); text-decoration: none; cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--sage-soft); outline: none; }
.menu-panel form { margin: 0; }

/* Huvudflikar: Provningar / Sorter */
.main-tabs .bar-inner { display: flex; gap: 8px; padding-bottom: 10px; }
.main-tabs a {
    flex: 1; text-align: center; padding: 8px 12px;
    border-radius: 999px; color: var(--muted); text-decoration: none;
    font-size: 1.1rem; font-weight: 600;
}
.main-tabs a:hover { color: var(--text); }
.main-tabs a { background: rgba(251, 247, 241, .6); }
.main-tabs a.active { background: rgba(233, 239, 226, .72); color: var(--sage-dark); }

/* ---------- Knappar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 10px 18px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); color: var(--text);
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary {
    background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: 0 6px 16px rgba(180, 81, 58, .25);
}
.btn-primary:active { background: var(--accent-dark); }
.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-login { width: 100%; max-width: 320px; background: var(--surface); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.actions .btn { flex: 1 1 140px; }

/* ---------- Startsida ---------- */
.hero { text-align: center; padding: 32px 0; }
.login-buttons { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 24px 0 12px; }

.cards, .pepper-list, .catalog, .ranking { list-style: none; margin: 0; padding: 0; }
.card {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px; margin: 10px 0;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    color: var(--text); text-decoration: none;
}

/* ---------- Provning ---------- */
.notes { white-space: pre-line; }
.round { margin-top: 18px; }
.round h2 { display: flex; align-items: center; gap: 10px; }
.round h2::before {
    content: ""; width: 22px; height: 14px; flex: none;
    background: var(--sprig) no-repeat 90% 10% / 260% auto;
}
.pepper-row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 12px 14px; margin: 6px 0; min-height: 48px;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    color: var(--text); text-decoration: none;
}
.pepper-row.rated { background: linear-gradient(90deg, var(--sage-soft), var(--surface) 70%); }
.stars { color: var(--accent); letter-spacing: 2px; white-space: nowrap; }
.pmeta { display: flex; gap: 6px; align-items: baseline; }
.danger-zone { margin-top: 40px; }

/* Sidfot, integritetspolicy, villkor och Mitt konto */
.site-footer {
    max-width: 720px; margin: 0 auto; padding: 16px 16px 96px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
    font-size: .8rem; border-top: 1px solid var(--border);
}
.site-footer a { color: var(--muted); }

/* Växeln mellan maskinöversättning och original */
.translation-bar {
    display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
    margin: 0 0 12px; padding: 6px 14px;
    border-radius: var(--radius-small); background: var(--sage-soft);
    color: var(--sage-dark);
}
.translation-bar a { color: var(--accent); font-weight: 600; }
.legal { max-width: 640px; }
.legal h2 { font-size: 1.15rem; }
.legal li { margin: 4px 0; }
.account-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 10px; }
.account-facts dt { color: var(--muted); }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }

/* Inre flikar i en provning: Provning / Sammanställning */
.tabs {
    display: flex; gap: 4px; margin: 12px 0; padding: 4px;
    background: var(--surface); border-radius: 999px; box-shadow: 0 2px 10px rgba(46, 53, 41, .06);
}
.tabs a {
    flex: 1; text-align: center; padding: 8px 12px; text-decoration: none;
    border-radius: 999px; color: var(--muted); font-weight: 700;
}
.tabs a.active { background: var(--accent-soft); color: var(--accent-dark); }
.tabs + .actions { margin-top: 0; }

/* ---------- Delning ---------- */
.join-form { margin: 18px 0; }
.join-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.join-row { display: flex; gap: 8px; }
.join-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.join-row input::placeholder { text-transform: none; }
.join-form input, .share-url {
    font: inherit; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-small); background: var(--surface); color: var(--text);
}
.share {
    margin: 18px 0; padding: 4px 16px 16px;
    background: linear-gradient(135deg, #fbe9e6, var(--sage-soft)); border-radius: var(--radius);
}
.share h2 { margin-top: .6em; }
.share-code {
    font-size: 2.4rem; font-weight: 600; letter-spacing: 5px; margin: 6px 0 10px;
    color: var(--accent-dark);
}
.share-url { width: 100%; font-size: .85rem; }
.participants { list-style: none; margin: 0; padding: 0; }
.participants li {
    display: flex; justify-content: space-between; gap: 8px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.join-card { margin: 14px 0; }

/* ---------- Betygssida ---------- */
.progress { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); }
.pepper-card {
    padding: 20px 22px; margin: 10px 0 16px;
    background: var(--surface);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.pepper-card h1 { font-size: 2.05rem; margin-top: .1em; padding-inline-end: 100px; }
/* Kvisten står i kortets högra kant, med underkanten i höjd med mitten av underrubriken. */
.pepper-sub { position: relative; padding-inline-end: 100px; }
.pepper-sub::after {
    content: ""; position: absolute; inset-inline-end: 0; bottom: 50%;
    width: 96px; height: 68px; background: var(--sprig) no-repeat right bottom / contain; pointer-events: none;
}
[dir="rtl"] .pepper-sub::after { transform: scaleX(-1); }
.sort-link { margin: 4px 0 0; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.form input[type=text], .form input:not([type]), .form input[type=date], .form textarea {
    font: inherit; font-weight: 400; padding: 10px 12px; color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface); width: 100%;
}

.scale { border: 0; margin: 0; padding: 0; }
.scale legend {
    font-weight: 600; margin-bottom: 6px; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; width: 100%;
}
.pills { display: flex; gap: 6px; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills label {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-height: 46px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); font-weight: 600; cursor: pointer; user-select: none;
}
.pills input:checked + label { background: var(--sage); border-color: var(--sage); color: #fff; }
.pills input:focus-visible + label { outline: 3px solid var(--sage-soft); }


/* "Ingen hetta" / "Ingen domning": kryssruta längst ut på rubrikraden (texten före rutan, så att rutorna linjerar); ikryssad dämpar raden */
.scale .none-check {
    display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0;
    margin-inline-end: 14px; /* inom knapparnas rundning */
    font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.scale .none-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--sage); }
.scale .none-check:has(input:checked) { color: var(--text); }
.scale.is-none .pills { opacity: .4; }


.sticky-actions {
    position: sticky; bottom: 0; margin: 8px -16px 0; padding: 10px 16px;
    background: rgba(251, 247, 241, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
}
/* I bred vy (innehållet når inte skärmkanten) ska raden vara lika bred som boxarna. */
@media (min-width: 752px) {
    .sticky-actions { margin: 8px 0 0; padding: 10px 0; }
}

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .9rem; }

/* ---------- Sammanställning ---------- */
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.highlight {
    display: flex; flex-direction: column; gap: 2px; padding: 12px;
    background: var(--surface); border-radius: var(--radius-small); box-shadow: var(--shadow);
    border-top: 4px solid var(--rose);
}
.highlight:nth-child(3n+2) { border-top-color: var(--sage); }
.highlight:nth-child(3n+3) { border-top-color: var(--accent); }
.highlight strong { font-size: 1.15rem; }

.ranking > li > details {
    margin: 8px 0; scroll-margin-top: 130px; /* hamnar inte under det klistrade sidhuvudet */
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.ranking summary {
    display: flex; flex-direction: column; gap: 2px;
    padding-block: 12px; padding-inline: 14px 36px; cursor: pointer; list-style: none; position: relative;
}
.ranking summary::-webkit-details-marker { display: none; }
.ranking summary::after {
    content: "▾"; position: absolute; inset-inline-end: 14px; top: 12px; color: var(--muted);
}
.ranking details[open] summary::after { content: "▴"; }
.person-ratings { list-style: none; margin: 0; padding: 0 14px; border-top: 1px solid var(--border); }
.person-ratings li {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 0; border-bottom: 1px dashed var(--border);
}
.person-ratings li:last-child { border-bottom: 0; }
.person-ratings.in-card { padding: 0; margin-top: 6px; }
.person-head { display: flex; justify-content: space-between; gap: 8px; }
.detail-links { margin: 0; padding: 4px 14px 12px; }

/* ---------- Sortlista ---------- */
.catalog li { border-bottom: 1px solid var(--border); }
.catalog li a {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 0; color: var(--text); text-decoration: none;
}
.catalog-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }

/* ---------- Sort: sammanställning och historik ---------- */
.stats {
    width: 100%; border-collapse: collapse; background: var(--surface); min-width: 260px;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.stats th, .stats td { border-bottom: 1px solid var(--border); padding: 6px 8px; text-align: start; }
.stats th:first-child { padding-inline-start: 12px; }
.stats tr > :last-child { padding-inline-end: 12px; }
.stats td { text-align: end; font-variant-numeric: tabular-nums; }
.stats thead th:not(:first-child) { text-align: end; }
.stats thead th { vertical-align: bottom; }
.legend { padding-inline-start: 1.2em; margin: 8px 0 0; }
.history { list-style: none; margin: 0; padding: 0; }
.history a { color: var(--accent); }
.card-action { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--border); }

/* Länk till översiktssidan högst upp. Ingen bakåtpil, eftersom man kan komma till sidan på flera sätt. */
.nav-link { margin: 4px 0 0; font-size: .9rem; }

/* ---------- Mall ---------- */
.print-header { display: none; }
.howto ul { padding-inline-start: 1.2em; }
.table-wrap { overflow-x: auto; }
.sheet { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .9rem; }
.sheet th, .sheet td { border: 1px solid var(--border); padding: 6px 8px; text-align: start; vertical-align: top; }
.sheet td { height: 44px; }
.sheet th:not(:first-child):not(.notes-col) { width: 9%; text-align: center; }
.notes-col { width: 30%; }

@media print {
    @page { size: A4 landscape; margin: 12mm; }
    body { background: #fff; font-size: 10pt; }
    .site-header, .no-print, .site-footer, .translation-bar { display: none !important; }
    .container { max-width: none; padding: 0; }
    .print-header { display: block; }
    .print-round { break-inside: avoid; }
    .sheet th, .sheet td { border-color: #888; }
    .sheet td { height: 34px; }
    a { color: inherit; text-decoration: none; }
}

/* ---------- Utvecklarläge (bara lokalt) ---------- */
.dev-panel {
    margin-top: 40px; padding: 4px 16px 12px;
    border: 2px dashed var(--border); border-radius: var(--radius);
}
.dev-users { list-style: none; margin: 0; padding: 0; }
.dev-users li { display: flex; flex-direction: column; padding: 6px 0; }
.dev-users a.current { color: var(--ok); }

/* ---------- Språk ---------- */
.menu-heading { margin: 6px 0 0; padding: 8px 10px 2px; border-top: 1px solid var(--border); }
.menu-languages { display: grid; grid-template-columns: auto auto; gap: 2px; margin: 0; }
.menu-languages .menu-item { white-space: nowrap; text-align: start; }
.menu-item.current { color: var(--sage-dark); font-weight: 700; background: var(--sage-soft); }
.menu-divider { border-top: 1px solid var(--border); margin: 4px 0; }

.language-picker { margin: 24px 0; text-align: center; }
.language-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.language-option {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 16px 20px; border: 0; border-radius: var(--radius); cursor: pointer;
    background: var(--surface); box-shadow: var(--shadow); color: var(--text); font: inherit; text-align: start;
}
.language-option strong { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.language-option:hover, .language-option:focus-visible { outline: 2px solid var(--sage); }
.language-option.current { background: var(--sage-soft); }

/* Fraunces och Nunito Sans saknar devanagari och grekiska; använd bra systemtypsnitt för dem. */
:lang(hi) { --display: "Fraunces", "Noto Serif Devanagari", "Nirmala UI", "Kohinoor Devanagari", serif;
            --body: "Nunito Sans", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", system-ui, sans-serif; }
:lang(grc) { --display: "Fraunces", "Noto Serif", "Palatino Linotype", "Times New Roman", serif;
             --body: "Nunito Sans", "Noto Sans", "Segoe UI", "Helvetica Neue", system-ui, sans-serif; }
:lang(ja) { --display: "Fraunces", "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Noto Sans JP", serif;
            --body: "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
/* Japanska har ingen kursiv; webbläsaren skulle luta tecknen konstgjort. */
:lang(ja) em, :lang(ja) i, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .brand { font-style: normal; }
:lang(ja) .stats tbody th { white-space: nowrap; }
/* Språknamnen i menyn och språkvalet ritas med typsnitt för sitt eget språk. */
.menu-languages [lang], .language-option[lang] { font-family: var(--body); }
:lang(ja) .stats thead th { word-break: keep-all; }
/* Arabiska: systemtypsnitt, ingen kursiv och ingen spärrning (bokstäverna sitter ihop). */
:lang(ar) { --display: "Noto Naskh Arabic", "Segoe UI", "Geeza Pro", "Times New Roman", serif;
            --body: "Noto Sans Arabic", "Segoe UI", "Geeza Pro", Tahoma, system-ui, sans-serif; }
:lang(ar) em, :lang(ar) i, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .brand { font-style: normal; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) .brand { letter-spacing: 0; }

/* Administration */
.notice {
    padding: 8px 14px; border-radius: var(--radius-small);
    background: var(--sage-soft); color: var(--sage-dark);
}
.admin-tastings .card form { margin-top: 8px; }
.btn-small { padding: 6px 14px; font-size: .85rem; }

/* Meddelanden om inbyggd webbläsare och installation (visas av site.js) */
[hidden] { display: none !important; }
.app-notices { padding-top: 0; padding-bottom: 0; }
.app-notice {
    margin: 12px 0 0; padding: 12px 16px;
    border-radius: var(--radius-small); background: var(--accent-soft); color: var(--text);
}
.app-notice p { margin: 0 0 8px; }
.app-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media print { .app-notices { display: none; } }
