/* FIREWALL phrase sheet. Uses the colors and type from styles.css.
   On screen it is a readable page; printed (or saved as the PDF) it fits
   on two letter-size pages with the rights at the top of page one. */

.phrases-main { padding-block: 24px 48px; }
.phrases-main > h1 { margin: 0 0 .3em; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0 8px; }
.p-actions a:not(.btn) { font-weight: 600; }
.p-actions a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.p-lang { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.p-lang select {
  font: inherit; font-size: 1rem; padding: 8px 10px; min-height: 44px; border-radius: 8px;
  border: 2px solid var(--brand); background: var(--surface); color: var(--ink);
}

.p-sheet { margin-top: 20px; }
.p-sheet .print-title { display: none; }
.p-sheet h2 { font-size: 1.2rem; margin: 1.2em 0 .3em; color: var(--brand); }
.p-sheet .hint { color: var(--muted); margin: 0 0 .6em; }
.p-sheet .en { display: block; color: var(--muted); font-size: .92em; }
.p-sheet .en-inline { color: var(--muted); font-weight: 600; }
.p-sheet .en.strong { color: var(--ink); font-weight: 700; font-size: 1em; }
.p-sheet .mine { display: block; }

/* Rights: first and boxed, so they are the first thing anyone sees. */
.p-rights {
  border: 2px solid var(--brand); border-radius: var(--radius); background: var(--brand-soft);
  padding: 4px 18px 10px;
}
.p-rights h2 { margin-top: .6em; }
.p-rights ol { margin: 0; padding-inline-start: 1.3em; }
.p-rights li { margin-bottom: 8px; }
.p-rights .mine { font-weight: 600; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.three .c-en { width: 32%; }
table.three .c-mine { width: 30%; }
table.two .c-en { width: 45%; }
.c-tip { color: var(--ink); }
tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }

.say-list { padding-inline-start: 1.4em; margin: 0; }
.say-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.say-list .en.point { color: var(--ink); font-weight: 800; font-size: 1.12em; }

.p-warn {
  margin-top: 18px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--warn-soft); border: 1px solid var(--warn-line); font-weight: 600;
}
.p-foot { color: var(--muted); margin-top: 12px; }

/* Phones: the officer table becomes stacked cards. */
@media (max-width: 640px) {
  table, thead, tbody, tr, th, td { display: block; width: auto !important; }
  thead { display: none; }
  tbody tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
  td { border-bottom: none; padding: 6px 12px; }
  td.c-en { padding-top: 10px; }
  td.c-tip { padding-bottom: 10px; border-top: 1px dashed var(--line); }
}

@media print {
  @page { size: letter; margin: .45in .5in; }
  .phrases-page .top, .phrases-main > h1, #p-intro, .p-actions, #p-privacy, .skip { display: none !important; }
  body.phrases-page { background: #fff; color: #000; font-size: 9pt; }
  .phrases-main { padding: 0; max-width: none; }
  .p-sheet { margin-top: 0; }
  .p-sheet .print-title { display: block; font-size: 13pt; margin: 0 0 6pt; color: #000; }
  .p-sheet h2 { font-size: 11pt; margin: 10pt 0 3pt; color: #000; }
  .p-rights { border: 1.5pt solid #000; background: #fff; padding: 2pt 10pt 6pt; }
  .p-rights li { margin-bottom: 3pt; }
  .p-sheet .en, .p-sheet .en-inline, .p-sheet .hint, th, .p-foot { color: #333; }
  th, td { padding: 3.5pt 5pt; border-color: #bbb; }
  tbody tr:nth-child(odd) td { background: #f2f2f2; }
  tr, .say-list li, .p-rights li { break-inside: avoid; }
  .p-sheet h2 { break-after: avoid; }
  .say-list li { padding: 3pt 0; border-color: #bbb; }
  .say-list .en.point { font-size: 10.5pt; }
  .p-warn { background: #fff; border: 1pt solid #000; padding: 6pt 8pt; }
}
