/* Littlepaw Forum: a Windows 7 "Aero glass" look, in the spirit of the phpBB Aero style.
   Recreated from scratch in our own CSS (gradients and shadows, no image files); nothing is copied from
   the phpBB Aero style. No inline styles anywhere: CSP is style-src 'self'. Pages must work without JS.

   The building block is the glass frame: a pale blue, slightly glossy border area with a dark outer
   outline and a soft shadow, around a light content area. Tables (.forumline) are glass frames whose
   header row (th) sits on the glass; the banner and the nav bar use the same frame. */

/* ---- palette (kept in one place; CSS custom properties are fine under our CSP) ---- */
:root {
  --ink: #333;
  --link: #0b3a5e;
  --link-hover: #0a6fb5;
  --outline: #1d2c38;
  --glass: linear-gradient(to bottom, #f2f8fc 0, #dbe9f4 18%, #c6dbeb 50%, #b7d0e3 51%, #c9dded 100%);
  --content: linear-gradient(to bottom, #d9eaf1 0, #eff7fb 100%);
  --line: #b5cfe1;
  --row1: #eef6fb;
  --row2: #e3f1fa;
}

/* ---- base ---- */
html { min-height: 100%; background: #cfe4f3 linear-gradient(to bottom, #7fb0d8 0, #a9cbe6 160px, #cbe1f2 420px, #d3e7f5 100%) no-repeat; }
body { margin: 0; padding: 12px 10px 30px; color: var(--ink); font: 12px/1.45 "Segoe UI", Verdana, "Helvetica Neue", Helvetica, Arial, sans-serif; }
a { color: var(--link); }
a:hover { color: var(--link-hover); text-decoration: none; }
.wrap { max-width: 1000px; margin: 0 auto; }
h2, h3 { color: #002a46; font-family: "Segoe UI", "Trebuchet MS", Arial, Helvetica, sans-serif; }
.small { font-size: 11px; }
.mono { font-family: Consolas, "Courier New", monospace; }
.right { text-align: right; }
.hint { color: #555; font-size: 11px; margin: 2px 0 0; }
.revoked { color: #888; text-decoration: line-through; }
[hidden] { display: none !important; }

/* ---- glass frame helper, used by the banner and the nav bar (box-shadow rings: frame, outline, shadow) ---- */
.sitename, .nav {
  box-shadow: 0 0 0 5px #c4d9ea, 0 0 0 6px var(--outline), 0 3px 10px 6px rgba(0, 20, 40, .35);
  border: 1px solid #f4f9fd;
}

/* ---- banner: deep navy with light streaks, like the Windows 7 wallpaper ---- */
.sitename { margin: 6px 6px 18px; padding: 22px 22px 20px; border-radius: 3px; color: #fff;
  font: 600 26px "Segoe UI", "Trebuchet MS", Arial, sans-serif; text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
  background:
    linear-gradient(160deg, transparent 0 58%, rgba(140, 210, 255, .28) 63%, transparent 70%),
    linear-gradient(168deg, transparent 0 66%, rgba(120, 230, 160, .30) 70%, transparent 74%),
    linear-gradient(172deg, transparent 0 72%, rgba(255, 255, 255, .22) 74%, transparent 77%),
    radial-gradient(ellipse at 85% 10%, rgba(70, 160, 230, .55), transparent 55%),
    linear-gradient(to bottom, #0d3a63 0, #082848 55%, #041a33 100%); }
.sitename a { color: #fff; text-decoration: none; }
.sitename a:hover { color: #d6ecff; }
.tagline { margin: 0 0 10px; color: #234; }

/* ---- nav bar ---- */
.nav { margin: 0 6px 18px; padding: 7px 12px; border-radius: 3px; background: var(--content); }
.nav a, .nav span { margin-right: 14px; }
.nav a { font-weight: bold; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.crumbs { margin: 0 4px 8px; }

/* ---- tables are glass frames; the header row sits on the glass ---- */
table.forumline { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 16px; padding: 0 5px 5px;
  background: #c4d9ea var(--glass); border: 1px solid var(--outline); border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 2px 9px rgba(0, 20, 40, .4); }
table.narrow { max-width: 460px; }
th { padding: 6px 6px 5px; text-align: left; white-space: nowrap; background: none; color: #3a3f44;
  font: bold 11px "Segoe UI", Arial, Helvetica, sans-serif; letter-spacing: .02em; text-transform: uppercase;
  text-shadow: 0 0 5px #fff, 0 0 2px #fff; }
th a { color: #3a3f44; }
td { padding: 7px 10px; vertical-align: top; background: var(--row1); border-top: 1px solid #fff; border-bottom: 1px solid #d0e2ef; }
td.row1 { background: var(--row1); }
td.row2 { background: var(--row2); }
td.rowhead { background: #d8ebf8; font-weight: bold; }
/* the inner edge of the content area */
tr > td:first-child { border-left: 1px solid #7f9db5; }
tr > td:last-child { border-right: 1px solid #7f9db5; }
tr:nth-child(2) > td { border-top-color: #7f9db5; }
tr:last-child > td { border-bottom-color: #7f9db5; }
td + td { box-shadow: inset 1px 0 0 #c9dceb; }
label { font-weight: bold; }
.field { margin: 0 0 10px; }

table.grid { table-layout: fixed; }
col.col-date { width: 100px; } col.col-icon { width: 38px; } col.col-num { width: 80px; } col.col-author { width: 150px; } col.col-last { width: 200px; }
table.grid td { overflow-wrap: anywhere; }

/* ---- forms and buttons (Windows 7 style: grey gloss, blue on hover) ---- */
input[type=text], input[type=password], select, textarea { box-sizing: border-box; width: 100%; max-width: 340px; padding: 4px 5px;
  border: 1px solid #abadb3; border-top-color: #8e9197; border-radius: 2px; background: #fff; color: #222;
  font: 12px "Segoe UI", Verdana, Arial, sans-serif; }
textarea { max-width: 680px; }
input[type=text]:hover, input[type=password]:hover, select:hover, textarea:hover { border-color: #5794bf; }
input[type=text]:focus, input[type=password]:focus, select:focus, textarea:focus { outline: none; border-color: #3d7bad; box-shadow: 0 0 3px rgba(61, 123, 173, .6); }
input[type=file] { max-width: 100%; }
button, a.button, summary.button { display: inline-block; padding: 3px 14px; border: 1px solid #707070; border-radius: 3px; color: #111; cursor: pointer;
  font: 12px "Segoe UI", Verdana, Arial, sans-serif; text-decoration: none;
  background: #e5e5e5 linear-gradient(to bottom, #f2f2f2 0, #ebebeb 49%, #dddddd 50%, #cfcfcf 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
button:hover:not(:disabled), a.button:hover, summary.button:hover { border-color: #3c7fb1; color: #111;
  background: #d6ebfa linear-gradient(to bottom, #eaf6fd 0, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%); }
button:active:not(:disabled) { border-color: #2c628b; background: linear-gradient(to bottom, #e5f4fc 0, #c4e5f6 49%, #98d1ef 50%, #68b3db 100%); }
button:focus-visible, a.button:focus-visible, summary.button:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
button:disabled { color: #8a8a8a; border-color: #adb2b5; background: #f4f4f4; cursor: default; }
button.danger, a.button.danger { color: #a00; }
button.linkbtn { padding: 0; border: 0; background: none; box-shadow: none; color: var(--link); font-weight: bold; }
button.linkbtn:hover:not(:disabled) { background: none; color: var(--link-hover); text-decoration: underline; }
form.inline { display: inline; margin: 0; }
.msg { margin: 10px 6px; padding: 7px 12px; border: 1px solid #7f9db5; border-radius: 4px; background: var(--content); }
.msg.error { border-color: #b33; color: #900; background: #fff2f2; }
.msg.ok { border-color: #3a8a52; color: #1f5c32; background: #effaf1; }
.admin { margin: 6px 4px; }
.admin select { max-width: 18em; }

/* ---- forum pages ---- */
.num { text-align: center; }
td.icon { text-align: center; color: #4d86b6; font-size: 16px; text-shadow: 0 1px 0 #fff; }
a.boardname { font-weight: bold; font-size: 13px; text-decoration: none; }
a.boardname:hover { text-decoration: underline; }
.pager { margin: 6px 4px; }
table.posts td.author { width: 150px; }
th.authorcol { width: 150px; }
.posthead { border-bottom: 1px solid #c9dceb; margin-bottom: 7px; padding-bottom: 3px; color: #555; }
.postbody { font-size: 13px; overflow-wrap: anywhere; color: #222; }
.edited { margin-top: 8px; color: #666; }
blockquote.quote { margin: 3px 20px; padding: 5px 10px; border: 1px solid #dbdbce; border-radius: 4px; background: #ebeadd; }
blockquote.quote blockquote.quote { background: #efeed9; }
.qhead { font-weight: bold; font-size: 11px; }
pre.code { margin: 3px 20px; padding: 7px; border: 1px solid #c9d2d8; border-radius: 4px; background: #fff; color: #1c4a33;
  font: 12px Consolas, "Courier New", monospace; overflow: auto; white-space: pre; }
details.spoiler { margin: 3px 0; padding: 5px 10px; border: 1px solid #b5cfe1; border-radius: 4px; background: #f6fbfe; }
details.spoiler summary { cursor: pointer; font-weight: bold; color: #002a46; }
.sz-1 { font-size: 9px; } .sz-2 { font-size: 11px; } .sz-3 { font-size: 14px; } .sz-4 { font-size: 18px; } .sz-5 { font-size: 24px; }
.c-red { color: #cc0000; } .c-green { color: #007700; } .c-blue { color: #0000cc; } .c-orange { color: #dd6900; }
.c-purple { color: #770077; } .c-gray { color: #777777; } .c-teal { color: #007777; } .c-brown { color: #774400; }
img.smiley { vertical-align: middle; }
.rank { font-size: 11px; color: #2f6a99; font-weight: bold; }

/* ---- unread markers (SPEC 6.3): glossy dots, lit blue when there is something new ---- */
.dot { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 50%;
  border: 1px solid #7d8b96; background: radial-gradient(circle at 35% 30%, #fff 0, #dfe6ec 40%, #a9b6c1 100%); }
.dot.new { border-color: #2a73a8; background: radial-gradient(circle at 35% 30%, #fff 0, #9fd8ff 30%, #2a8bd6 75%, #14639c 100%);
  box-shadow: 0 0 5px 1px rgba(60, 170, 255, .75); }
td.icon .dot { margin: 0; }
a.new, a.boardname.new { font-weight: bold; }
.newcount { color: #2f6a99; }
.newlink, .newbadge { display: inline-block; padding: 0 6px; border: 1px solid #c9791c; border-radius: 9px; color: #fff; background: linear-gradient(to bottom, #ffc46b, #f0881c);
  font: bold 10px "Segoe UI", Arial, sans-serif; text-decoration: none; text-shadow: 0 1px 1px rgba(120, 60, 0, .6); }
a.newlink:hover { color: #fff; border-color: #8f5410; }
.actions { margin: 0 6px 10px; text-align: right; }

/* ---- profiles (SPEC 6.4) ---- */
img.avatar { display: inline-block; max-width: 128px; max-height: 128px; margin-bottom: 4px; padding: 2px; border: 1px solid #9db8cc;
  border-radius: 3px; background: #fff; box-shadow: 0 1px 3px rgba(0, 20, 40, .25); }
a.authorname { text-decoration: none; }
a.authorname:hover { text-decoration: underline; }
.signature { margin-top: 12px; padding-top: 5px; border-top: 1px dashed #9db8cc; color: #555; font-size: 11px; overflow-wrap: anywhere; }

/* ---- smiley picker ---- */
.smiley-panel { margin: 4px 0 10px; max-width: 680px; max-height: 112px; overflow-y: auto; padding: 3px;
  border: 1px solid #abadb3; border-radius: 2px; background: #fff; }
button.smiley-pick { padding: 1px; border: 1px solid transparent; border-radius: 3px; background: none; box-shadow: none; }
button.smiley-pick:hover:not(:disabled) { border-color: #7eb4ea; background: linear-gradient(to bottom, #f1f8fe, #d9ecfc); }

@media (max-width: 600px) {
  body { padding: 8px 4px 20px; }
  .sitename { font-size: 21px; padding: 14px 14px; }
  table.forumline { padding: 0 3px 3px; }
  table.posts td.author, th.authorcol { width: 90px; }
  th, td { padding: 6px; }
  col.col-num { width: 52px; } col.col-author, col.col-last { width: 96px; } col.col-date { width: 70px; } col.col-icon { width: 24px; }
  blockquote.quote, pre.code { margin-left: 4px; margin-right: 4px; }
}

/* search results (SPEC 6.6) */
mark { background: #fff1a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.pmtag { border-color: #2d6aa8; background: linear-gradient(to bottom, #8fc2f2, #3d86d0); }

/* attachments (SPEC 6.7) */
img.attach { max-width: 100%; max-height: 480px; height: auto; border: 1px solid #9fb6cc; border-radius: 3px; background: #fff; }
video.attach { max-width: 100%; max-height: 480px; background: #000; border-radius: 3px; }
div.attach { margin: 6px 0; }
.attach-missing { color: #777; font-style: italic; }
.attach-box { margin-top: 4px; }
.attach-status.error { color: #a02020; }

/* message editor and collapsible reply box (SPEC 6.8) */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 10px; margin: 0 0 6px; }
.editor-main { min-width: 0; }
.editor-main textarea { max-width: none; display: block; }
/* the picker is exactly as tall as the text box and scrolls inside it (height 0 + min-height 100% keeps it from stretching the row) */
.editor .smiley-panel { height: 0; min-height: 100%; max-width: none; max-height: none; margin: 0; overflow-y: auto; }
.bb-toolbar { margin: 0 0 4px; }
.bb-toolbar button.bb { padding: 1px 7px; min-width: 26px; font-size: 11px; }
.bb-toolbar button.bb[data-open="[b]"] { font-weight: bold; } .bb-toolbar button.bb[data-open="[i]"] { font-style: italic; }
.bb-toolbar button.bb[data-open="[u]"] { text-decoration: underline; } .bb-toolbar button.bb[data-open="[s]"] { text-decoration: line-through; }
.bb-toolbar select { width: auto; max-width: 110px; padding: 1px 2px; font-size: 11px; }
details.reply-box { margin: 10px 0; }
details.reply-box > summary { list-style: none; margin: 0 0 8px; user-select: none; }
details.reply-box > summary::-webkit-details-marker { display: none; }
details.reply-box > summary .when-open { display: none; font-weight: bold; padding: 0 6px; }
details.reply-box[open] > summary .when-open { display: inline; }
details.reply-box[open] > summary .when-closed { display: none; }
@media (max-width: 600px) { .editor { grid-template-columns: minmax(0, 1fr); } .editor .smiley-panel { height: auto; min-height: 0; max-height: 112px; } }
.post-options { margin: 6px 0 10px; }
.post-options label.opt { display: block; font-weight: normal; margin: 1px 0; }
.picon { font-style: normal; font-size: 14px; line-height: 1; vertical-align: -1px; }
.icon-row { margin: 0 0 8px; } .icon-row label.icon-opt { display: inline-block; font-weight: normal; margin: 0 6px 2px 0; white-space: nowrap; }
.icon-row .picon { font-size: 16px; }
