/*
 * lgs.tw - the stylesheet.
 *
 * The look follows the LGS main site (lgs.taiwango.net): a warm paper page,
 * a dark bar with a gold hairline, cream panels in a wooden frame and
 * serif headings.  The colours are the ones of lgs.tw: the bar and the
 * accents are jade instead of the brown-red of the main site, so the two
 * are recognisably the same family and not the same page.
 *
 * The board itself is drawn by goboard.
 */

:root {
    --paper: #e5ddc9;         /* the page: warm sand */
    --paper-deep: #d8cdb2;    /* the edge of the page */
    --panel: #fbf7ec;         /* a panel: cream */
    --panel-2: #f1ead9;       /* a panel inside a panel */
    --ink: #262117;           /* the text: ink */
    --muted: #6f6249;         /* the quiet text */
    --frame: #7c6647;         /* the frame of a panel: wood */
    --frame-line: #c9b189;    /* the hairline inside the frame */
    --bar: #23352f;           /* the navigation bar: deep jade ink */
    --bar-hover: #2e443c;
    --bar-ink: #f3ecdc;
    --bar-line: #a98f5c;      /* the gold hairline of the bar */
    --accent: #1f6f63;        /* jade: the links and the main button */
    --accent-hover: #17564c;
    --accent-soft: rgba(31, 111, 99, 0.14);
    --danger: #a4342a;
    --vip: #9a7418;
    --radius: 4px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC",
                 "Microsoft JhengHei", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: var(--accent-hover); text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------
 * the brand, above the bar
 * ------------------------------------------------------------------ */

.bar .brand {
    grid-column: 1;
    justify-self: start;
    font-family: "Songti TC", "Noto Serif CJK TC", "PMingLiU",
                 "Microsoft JhengHei", serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bar-ink);
    text-decoration: none;
    white-space: nowrap;
}

.bar .brand:hover { color: var(--accent); text-decoration: none; }

/* ------------------------------------------------------------------
 * the navigation bar
 * ------------------------------------------------------------------ */

/* the navigation sits in the middle, like the one of the main site */
.bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: var(--bar);
    border-top: 3px solid var(--bar-line);
    border-bottom: 3px solid var(--bar-line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.bar .nav {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

.bar .session {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 14px;
    color: var(--bar-ink);
    font-weight: 600;
    text-decoration: none;
}

.bar .nav a:hover {
    background: var(--bar-hover);
    color: var(--bar-ink);
    text-decoration: none;
}

.bar #session-who {
    color: var(--bar-ink);
    font-size: 15px;
}

.bar button.link {
    background: none;
    border: 1px solid var(--bar-line);
    color: var(--bar-ink);
    padding: 4px 12px;
    min-height: 32px;
}

.bar button.link:hover { background: var(--bar-hover); }

/* The language switcher: the language this page is in, and the other one. */
.bar .lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--bar-ink);
    font-size: 14px;
    white-space: nowrap;
}

.bar .lang-switcher a {
    color: var(--bar-ink);
    text-decoration: underline;
    padding: 2px 4px;
}

.bar .lang-switcher a:hover { color: var(--accent); }

.bar .lang-switcher .lang-current {
    font-weight: 700;
    padding: 2px 4px;
}

@media screen and (max-width: 720px) {
    .bar {
        grid-template-columns: auto 1fr;
        row-gap: 4px;
    }
    .bar .brand { font-size: 15px; letter-spacing: 0.5px; }
    .bar .session { grid-column: 2; }
    .bar .nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .bar .lang-switcher { font-size: 13px; gap: 2px; }
    .bar .lang-switcher a,
    .bar .lang-switcher .lang-current { padding: 1px 2px; }
}


/* ------------------------------------------------------------------
 * the page
 * ------------------------------------------------------------------ */

main {
    width: min(1080px, calc(100% - 32px));
    margin: 22px auto 40px;
}

/* a panel in a wooden frame, like the stage of the main site */
.card {
    background: var(--panel);
    border: 10px solid var(--frame);
    outline: 2px solid var(--frame-line);
    outline-offset: -6px;
    padding: 22px 24px 26px;
    margin-bottom: 22px;
}

.card.inner {
    background: var(--panel-2);
    border: 1px solid var(--frame-line);
    outline: none;
    margin: 12px 0 0;
    padding: 16px;
}

h1, h2, h3 {
    font-family: "Songti TC", "Noto Serif CJK TC", "PMingLiU",
                 "Microsoft JhengHei", serif;
    color: var(--ink);
}

h1 { font-size: 24px; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; }

.hint { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-size: 14px; }

/* under the sign-in form: an account is made on LGS, not here */
.register-line {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--frame-line);
}
.register-line a { font-weight: 600; }

.vip {
    color: var(--vip);
    font-weight: 700;
    letter-spacing: 1px;
}

label {
    display: block;
    margin: 10px 0;
}

/* The three fields of a new record sit side by side on a wide screen and
   stack on a narrow one. */
.new-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 4px 16px;
    margin: 16px 0 4px;
}

.new-fields label {
    margin: 0;
}

/* 標題 on the edit page: the record's own name, editable like the comment */
/*
 * The title of a record is the heading, and the heading is the box: the
 * owner writes in it, so it looks like a title that can be written in, not
 * like a field (DESIGN.md 3.11).
 */
.record-title {
    line-height: 1.3;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.record-title[contenteditable] {
    outline: none;
    border-bottom: 1px dashed var(--frame-line);
    cursor: text;
}

.record-title[contenteditable]:hover,
.record-title[contenteditable]:focus {
    border-bottom-color: var(--accent);
}

.record-title[contenteditable]:focus {
    border-bottom-style: solid;
}

.record-title:empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
}

/* 刪除: the one button on the page that takes something away */
button.danger {
    color: #9c2b1f;
    border-color: #dcc3bd;
}

button.danger:hover:not(:disabled) {
    background: #f7e3df;
    border-color: #c99a91;
}

input[type="text"], input[type="password"], input[type="search"],
input[type="date"], input[type="file"], select {
    width: 100%;
    padding: 8px 10px;
    background: #fffdf6;
    border: 1px solid var(--frame-line);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
}

input:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

button {
    padding: 7px 16px;
    background: var(--panel-2);
    border: 1px solid var(--frame-line);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

button:hover { border-color: var(--accent); color: var(--accent-hover); }

button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fdfaf1;
    font-weight: 700;
}

button.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fdfaf1;
}

button.link {
    background: none;
    border: none;
    color: var(--accent);
    padding: 0;
    text-decoration: underline;
}

button.link:hover { color: var(--accent-hover); }

button:disabled { opacity: 0.45; cursor: default; }

/* a link that looks like the primary button, for a page that is opened by a
   link rather than by a script */
a.button-link {
    display: inline-block;
    padding: 7px 16px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: #fdfaf1;
    font-weight: 700;
    text-decoration: none;
}

a.button-link:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fdfaf1;
}

a.button-link.big {
    padding: 12px 26px;
    font-size: 17px;
}

a.button-link.secondary {
    background: var(--panel-2);
    color: var(--accent);
}

a.button-link.secondary:hover {
    background: var(--accent);
    color: #fdfaf1;
}

/* the entrance of the site: what it does, and the two ways in */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.hero-figure {
    margin: 0;
    justify-self: end;
    max-width: 320px;
}

.hero-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--frame-line);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.hero-figure figcaption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.hero h1 { font-size: 30px; margin-bottom: 12px; }

.hero .lead {
    font-size: 17px;
    margin: 0 0 16px;
    max-width: 60ch;
}

.hero-points {
    margin: 0 0 22px;
    padding-left: 22px;
    line-height: 1.9;
    max-width: 66ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
}

@media screen and (max-width: 900px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .hero-figure { justify-self: start; max-width: 260px; }
}

@media screen and (max-width: 720px) {
    .hero h1 { font-size: 24px; }
    .hero .lead { font-size: 16px; }
    .hero-actions a.button-link { flex: 1 1 100%; text-align: center; }
    .hero-figure { max-width: 100%; }
}

/* the scope buttons of the search page */
button.scope {
    background: var(--panel-2);
    color: var(--muted);
}

button.scope.active {
    color: var(--accent-hover);
    border-color: var(--accent);
    background: var(--accent-soft);
    font-weight: 700;
}

button.mark.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fdfaf1;
}

/* The four marks and the eraser are icons; the title says which is which. */
button.mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    padding: 0;
}

button.mark svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

button.mark.clear {
    margin-left: 4px;
    color: var(--muted);
}

/* the setup stones follow the marks, a little apart */
button.mark.setup[data-tool="AB"] { margin-left: 10px; }
button.mark.setup.active { background: var(--accent); border-color: var(--accent); color: #fdfaf1; }

@media screen and (max-width: 720px) {
    button.mark { width: 32px; height: 30px; }
    button.mark svg { width: 16px; height: 16px; }
    button.mark.setup[data-tool="AB"] { margin-left: 6px; }
}

/* What a click will put down, drawn as the pointer itself (DESIGN.md 3.11).
   Two strokes, light under dark, so the shape reads on a wooden board and on
   a dark one alike. */
#board.tool-cr, #board.tool-cr canvas {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='6' fill='none' stroke='%23fff' stroke-width='4'/%3E%3Ccircle cx='12' cy='12' r='6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") 12 12, crosshair;
}
#board.tool-sq, #board.tool-sq canvas {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect x='6' y='6' width='12' height='12' rx='1' fill='none' stroke='%23fff' stroke-width='4'/%3E%3Crect x='6' y='6' width='12' height='12' rx='1' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") 12 12, crosshair;
}
#board.tool-tr, #board.tool-tr canvas {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 4l8 15H4z' fill='none' stroke='%23fff' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M12 4l8 15H4z' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 12 12, crosshair;
}
#board.tool-ma, #board.tool-ma canvas {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23fff' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, crosshair;
}
#board.tool-ab, #board.tool-ab canvas {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='7' fill='%23111' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 12 12, crosshair;
}
#board.tool-aw, #board.tool-aw canvas {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='7' fill='%23fbf8ef' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E") 12 12, crosshair;
}
#board.tool-ae, #board.tool-ae canvas {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M7.5 16.5l9-9' stroke='%23fff' stroke-width='4'/%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M7.5 16.5l9-9' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") 12 12, crosshair;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.toolbar .spacer { flex: 1; }

/* a record of the list with a button next to it */
.records {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

/* a row: the title and its line, then the buttons of that row on the right */
.records li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--frame-line);
}

.records li:last-child { border-bottom: none; }

.records li > a { font-weight: 600; }

.records .meta { color: var(--muted); font-size: 13px; }

.records li button { margin-left: 10px; }
.records li button:first-of-type { margin-left: auto; }

.records li button.danger {
    border-color: #b23b3b;
    color: #b23b3b;
}

.records li button.danger:hover {
    background: #b23b3b;
    border-color: #b23b3b;
    color: #fdfaf1;
}

/* 分享: one row under the actions, and the note that follows a copy */
.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.share-row[hidden] { display: none; }

.share-label {
    color: var(--muted);
    font-size: 13px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.share-buttons button.share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 4px 10px;
}

.share-buttons .share-icon {
    width: 15px;
    height: 15px;
    flex: none;
}

.share-row .hint {
    flex-basis: 100%;
    margin: 2px 0 0;
}

.forgot-line {
    margin: 10px 0 0;
    font-size: 13px;
}

/* ten a page: the row of buttons under a list */
.pager {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.pager[hidden] { display: none; }

.pager .hint { margin: 0; min-width: 5em; text-align: center; }

.paths { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------
 * the board
 * ------------------------------------------------------------------ */

.board-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

/* On a wide screen the board takes the left side, as big as it can be, and
   the settings and the information are a column on the right.  A narrow
   screen stacks them, board first. */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 30px;
    align-items: start;
}

.split .board-col,
.split .side-col {
    min-width: 0;
}

.split .board-col .board-wrap {
    display: block;
    margin: 0;
}

/* The board component measures its container, so the container has to be
   the whole column: the board then uses the width it is given (up to the
   cap set in the script). */
.split .board-col #board {
    width: 100%;
}

@media screen and (max-width: 960px) {
    .split {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.comment-label { display: block; margin: 12px 0; }

/*
 * The comment wraps: it is a box you write a sentence in, not a bar you
 * scroll sideways, and it grows downwards as far as you drag it.
 */
.comment-label textarea {
    display: block;
    width: 100%;
    min-height: 3.2em;
    margin-top: 4px;
    padding: 7px 9px;
    font: inherit;
    line-height: 1.45;
    color: var(--ink);
    background: #fffdf7;
    border: 1px solid var(--frame-line);
    border-radius: 4px;
    resize: vertical;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.comment-label textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

/* how much of the 140 is used: quiet until it matters */
.comment-count {
    display: block;
    margin-top: 3px;
    text-align: right;
    font-size: 12px;
    color: var(--muted);
}

.comment-count.full { color: var(--accent); }
.comment-count.over { color: #b23b3b; font-weight: 600; }

/* ------------------------------------------------------------------
 * the footer and the adverts
 * ------------------------------------------------------------------ */

.foot {
    background: var(--bar);
    border-top: 3px solid var(--bar-line);
    color: var(--bar-ink);
    text-align: center;
    padding: 20px 16px 26px;
    font-size: 15px;
}

.foot p { margin: 4px 0; }

.foot a { color: var(--bar-ink); text-decoration: underline; }
.foot a:hover { color: var(--accent); }

.ads {
    margin: 22px 0 8px;
    min-height: 1px;
}

/* The wide advert: the last thing on the page, above the footer.  A record is
   read for its board, so the advert goes where it pushes nothing down.  It is
   outside <main>, so it gets a width and a margin of its own. */
.ads-wide {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto 24px;
    min-height: 1px;
}

/* ------------------------------------------------------------------
 * the buttons that step through the record
 * ------------------------------------------------------------------ */

/* Above the board, where the reader looks first.  They are outside #editor
   on purpose: a guest reading a record steps through it too. */
.move-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
}

/* An icon, not a word: the arrows are the whole label, and the title says
   what each one does. */
.move-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    padding: 0;
}

/* 復原／重作 sit at the head of the step row, with a line between them */
.undo-redo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 8px;
    margin-right: 2px;
    border-right: 1px solid var(--frame-line);
}

.undo-redo[hidden] { display: none; }

.move-nav button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.move-nav button:disabled {
    opacity: 0.38;
    cursor: default;
}

.move-nav #move-count {
    min-width: 88px;
    margin: 0 4px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* 手數 sits at the far end: it changes what the board shows, it does not
   move through the record. */
.move-nav #move-numbers {
    margin-left: auto;
}

.move-nav #move-numbers.on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fdfaf1;
}

@media screen and (max-width: 720px) {
    /* six arrows, the count and the toggle fit on one line at 390px */
    .move-nav { gap: 3px; }
    .move-nav button { width: 31px; height: 30px; }
    .move-nav button svg { width: 16px; height: 16px; }
    .move-nav #move-count { min-width: 66px; margin: 0 1px; font-size: 15px; }
}

/* ------------------------------------------------------------------
 * the small screens
 * ------------------------------------------------------------------ */

@media screen and (max-width: 720px) {
    body { font-size: 16px; }

    main {
        width: calc(100% - 16px);
        margin: 12px auto 24px;
    }

    .card {
        border-width: 6px;
        padding: 16px 14px 20px;
    }

    .bar {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        padding: 4px 8px;
        gap: 4px;
    }

    .bar .nav { grid-column: 1; }
    .bar .session { grid-column: 1; justify-self: end; }
    .bar .nav a { padding: 6px 8px; min-height: 36px; }
    .brand .logo { font-size: 22px; }

    .ads-wide {
        width: calc(100% - 16px);
        margin: 0 auto 16px;
    }
}

/* AdSense sizes the unit itself; the element has to be a block. */
.adsbygoogle { display: block; }

/* An advert is shown only once AdSense says it filled the unit.  Reserving
   room for a unit that never comes leaves a hole, so both units start hidden
   and app.js reveals them when they report filled. */
.ads-wide,
.ads-square { display: none; }

.ads-wide.is-filled,
.ads-square.is-filled { display: block; }

/* The square advert in the column beside the board.  The column is 360px
   wide on a desk and the whole width on a telephone, so the unit is told to
   fill it and AdSense picks the rectangle that fits. */
.ads-square {
    margin: 2px 0 20px;
    min-height: 1px;
}

.ads-square.is-empty { display: none; }

@media screen and (max-width: 960px) {
    /* stacked, the advert sits under the board and above the tools */
    .ads-square { margin: 4px 0 16px; }
}

/* ------------------------------------------------------------------
 * /vip - what a member gets, and what VIP adds
 * ------------------------------------------------------------------ */

.vip-page h1 { font-size: 26px; margin-bottom: 12px; }

.vip-page .lead {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 20px;
    max-width: 66ch;
}

.vip-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
    font-size: 15px;
}

.vip-table th,
.vip-table td {
    padding: 9px 10px;
    text-align: left;
    border-bottom: 1px solid var(--frame-line);
    vertical-align: top;
}

.vip-table thead th {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--muted);
    border-bottom: 2px solid var(--frame-line);
}

.vip-table tbody th {
    font-weight: 600;
    white-space: normal;
}

.vip-table td { color: var(--ink); }

.vip-table .no { color: var(--muted); }

.vip-table .vip-col {
    background: rgba(198, 148, 42, 0.08);
    text-align: center;
    white-space: nowrap;
}

.vip-table thead .vip-col {
    color: #8a6410;
    font-weight: 700;
}

.vip-table .vip-col.yes { font-weight: 600; }

@media screen and (max-width: 720px) {
    .vip-table { font-size: 14px; }
    .vip-table th,
    .vip-table td { padding: 8px 6px; }
    .vip-page h1 { font-size: 22px; }
}

/* the link a refusal carries to the page that explains the upgrade */
.vip-link {
    color: var(--accent);
    text-decoration: underline;
    white-space: nowrap;
}

.vip-link:hover { text-decoration: none; }
