Files
Claude 4d49631d37 Where callers are: GeoIP for the forums, caller ID decoding
- internal/phone reads modem caller IDs with its own tables: the ITU's
  country calling codes (shared ones told apart), the NANP's area codes
  by state and province, toll-free and other services, and how each
  country dials, so national numbers read as [general] phone_country
- [general] geoip (with geoip_credit) is the BBS's country database;
  [chan] geoip falls back to it.  geoip.File keeps a database file up
  to date for both
- bbs.Locate and Node.Place: a caller's place by caller ID, else by
  address; the connect log, who's online (the country), the sysop's node
  list (number and state) and the API's /who show it
- messages keep the poster's country (messages.country); the web forum
  shows its flag by the poster's name in every theme and on Online
  Users, with the database's credit at the foot ([http] forum_flags)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 08:05:27 +00:00

406 lines
30 KiB
CSS

/*
* The forum's fresh theme: laid out in the manner of the community
* suites of the mid-2020s (Invision Community 5's default theme and its
* kind): a slate header carrying the board's name, its sections and the
* member's menu over a darker band with the breadcrumb and a round
* search box, a cool grey page, white boxes with soft corners and
* shadows, rounded square forum icons that turn blue when there is
* something new, round photos, a side column of widgets, posts with the
* author beside them and reactions beneath, the system's own typeface.
* Written for this BBS; it takes no code or images from any board.
*/
:root {
--primary: #135bec;
--primary-contrast: #ffffff;
--secondary: #111c31;
--base-1: #ffffff;
--base-2: #fafcff;
--base-3: #eff2f7;
--base-4: #d5dbe6;
--base-5: #cad5e7;
--base-6: #b0bfd6;
--contrast-1: #516483;
--contrast-3: #40506b;
--contrast-4: #28364c;
--contrast-5: #1b2434;
--contrast-6: #070b14;
--radius: 8px;
--shadow: 0 7px 7px -3px rgba(16, 24, 40, 0.05), 0 1px 2px rgba(16, 24, 40, 0.06);
--width: 1500px;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--base-3);
color: var(--contrast-3);
font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--contrast-6); text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3 { color: var(--contrast-6); }
p { margin: 0 0 10px; }
form { margin: 0; }
hr { border: 0; border-top: 1px solid var(--base-4); margin: 6px 0; }
.inline-form { display: inline; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linkish:hover { color: var(--primary); }
.ipsMuted, .small { color: var(--contrast-1); font-size: 13px; }
.ipsWidth { max-width: var(--width); margin: 0 auto; padding: 0 24px; }
/* --- little pictures drawn with CSS (no icon font is loaded) */
.ic { position: relative; display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; flex: none; }
.ic-home::before { content: ""; position: absolute; left: 15%; right: 15%; bottom: 8%; height: 50%; border: 2px solid currentColor; border-top: 0; border-radius: 1px; }
.ic-home::after { content: ""; position: absolute; left: 50%; top: 5%; width: 62%; height: 62%; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateX(-50%) rotate(45deg); transform-origin: center; top: 18%; }
.ic-forums::before, .ic-bubble::before, .ic-bubble-sm::before { content: ""; position: absolute; inset: 10% 5% 25% 5%; border: 2px solid currentColor; border-radius: 30%; }
.ic-forums::after, .ic-bubble::after, .ic-bubble-sm::after { content: ""; position: absolute; left: 22%; bottom: 8%; width: 25%; height: 25%; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: skewY(-35deg); }
.ic-online::before { content: ""; position: absolute; left: 30%; top: 5%; width: 40%; height: 40%; border: 2px solid currentColor; border-radius: 50%; }
.ic-online::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 5%; height: 38%; border: 2px solid currentColor; border-bottom: 0; border-radius: 50% 50% 0 0; }
.ic-activity::before { content: ""; position: absolute; inset: 15% 0; background: linear-gradient(currentColor, currentColor) 0 50% / 25% 2px no-repeat, linear-gradient(currentColor, currentColor) 100% 50% / 25% 2px no-repeat; }
.ic-activity::after { content: ""; position: absolute; left: 25%; right: 25%; top: 10%; bottom: 10%; border-left: 2px solid currentColor; border-right: 2px solid currentColor; transform: skewX(-20deg); }
.ic-terminal::before { content: ""; position: absolute; inset: 10% 0; border: 2px solid currentColor; border-radius: 3px; }
.ic-terminal::after { content: ""; position: absolute; left: 22%; top: 35%; width: 25%; height: 25%; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.ic-search::before { content: ""; position: absolute; left: 5%; top: 5%; width: 65%; height: 65%; border: 2px solid currentColor; border-radius: 50%; }
.ic-search::after { content: ""; position: absolute; right: 8%; bottom: 8%; width: 35%; height: 2px; background: currentColor; transform: rotate(45deg); transform-origin: right; }
.ic-check::before { content: ""; position: absolute; left: 30%; top: 5%; width: 35%; height: 70%; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.ic-pen::before { content: ""; position: absolute; left: 45%; top: -5%; width: 22%; height: 95%; border: 2px solid currentColor; border-radius: 1px 1px 0 0; transform: rotate(45deg); }
.ic-reply::before { content: ""; position: absolute; left: 30%; top: 30%; width: 60%; height: 50%; border-top: 2px solid currentColor; border-right: 2px solid currentColor; border-radius: 0 60% 0 0; }
.ic-reply::after { content: ""; position: absolute; left: 10%; top: 12%; width: 35%; height: 35%; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.ic-share::before { content: ""; position: absolute; inset: 15%; border: 2px solid currentColor; border-radius: 2px; border-right-color: transparent; border-top-color: transparent; }
.ic-quote::before { content: "\201C"; position: absolute; left: 0; top: -0.05em; font: bold 1.6em/1 Georgia, serif; }
.ic-chart::before { content: ""; position: absolute; inset: 10% 5%; background: linear-gradient(to right, currentColor 0 22%, transparent 22% 39%, currentColor 39% 61%, transparent 61% 78%, currentColor 78%) bottom / 100% 100% no-repeat; clip-path: polygon(0 50%, 22% 50%, 22% 100%, 39% 100%, 39% 0, 61% 0, 61% 100%, 78% 100%, 78% 30%, 100% 30%, 100% 100%, 0 100%); }
.ic-cal::before { content: ""; position: absolute; inset: 12% 8% 5%; border: 2px solid currentColor; border-top-width: 4px; border-radius: 2px; }
.ic-fire::before { content: ""; position: absolute; left: 20%; top: 10%; width: 60%; height: 80%; background: currentColor; border-radius: 50% 0 50% 50%; transform: rotate(-45deg); }
.chev { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); vertical-align: 1px; }
.chev.left { transform: rotate(-135deg); }
.caret { display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 2px 3px; }
/* --- the header: slate, then a darker band */
.ipsHeader__primary { background: var(--contrast-4); color: var(--base-1); }
.ipsHeader__secondary { background: var(--contrast-5); color: var(--base-1); }
.ipsHeader__row { display: flex; align-items: center; gap: 24px; }
.ipsHeader__primary .ipsHeader__row { min-height: 100px; }
.ipsHeader__secondary .ipsHeader__row { min-height: 50px; }
.ipsLogo { display: inline-flex; align-items: center; gap: 10px; color: var(--base-1); font-size: 22px; font-weight: 600; min-width: 0; }
.ipsLogo:hover { color: var(--base-1); }
.ipsLogo__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.ipsLogo__mark {
position: relative; flex: none; width: 34px; height: 34px; border-radius: 9px;
background: linear-gradient(135deg, #4f8bff, var(--primary));
box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.ipsLogo__mark::after { content: ""; position: absolute; inset: 9px 8px 11px; border: 3px solid #fff; border-radius: 6px 6px 6px 1px; }
.ipsNav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.ipsNav a {
display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; height: 40px; border-radius: var(--radius);
color: var(--base-5); font-weight: 500;
}
.ipsNav a:hover { color: var(--base-1); background: rgba(255,255,255,0.06); }
.ipsNav a[aria-current] { color: var(--base-1); background: rgba(255,255,255,0.12); }
.ipsUserNav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ipsUserNav__link { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 4px 8px; border-radius: 999px; color: var(--base-1); font-weight: 500; }
.ipsUserNav__link::-webkit-details-marker { display: none; }
.ipsUserNav__link:hover { background: rgba(255,255,255,0.08); }
.ipsMenu { position: relative; }
.ipsMenu__panel {
position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 220px; padding: 8px;
background: var(--base-1); color: var(--contrast-3); border: 1px solid var(--base-4); border-radius: var(--radius);
box-shadow: 0 12px 30px -6px rgba(16,24,40,0.25);
}
.ipsMenu__panel a, .ipsMenu__panel .linkish { display: block; width: 100%; padding: 6px 10px; border-radius: 6px; text-align: left; color: var(--contrast-6); }
.ipsMenu__panel a:hover, .ipsMenu__panel .linkish:hover { background: var(--base-3); color: var(--primary); }
.ipsMenu__title { padding: 4px 10px 8px; font-weight: 600; color: var(--contrast-6); }
.ipsBreadcrumb { flex: 1; min-width: 0; }
.ipsBreadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ipsBreadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.ipsBreadcrumb li + li::before { content: ""; width: 5px; height: 5px; margin: 0 6px 0 2px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.ipsBreadcrumb a { display: inline-flex; align-items: center; gap: 6px; }
.ipsHeader__secondary .ipsBreadcrumb a { color: var(--base-5); }
.ipsHeader__secondary .ipsBreadcrumb a:hover, .ipsHeader__secondary .ipsBreadcrumb span { color: var(--base-1); }
.ipsSearch { position: relative; display: flex; align-items: center; width: 300px; max-width: 100%; }
.ipsSearch .ic { position: absolute; left: 12px; color: var(--base-6); }
.ipsSearch input {
width: 100%; height: 34px; padding: 0 14px 0 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.08); color: var(--base-1); font: inherit; font-size: 13px;
}
.ipsSearch input::placeholder { color: var(--base-6); }
.ipsSearch input:focus { outline: none; background: var(--base-1); color: var(--contrast-6); }
/* --- the page */
.ipsLayout__main { padding-top: 24px; padding-bottom: 32px; }
.ipsPageHeader { margin: 0 0 18px; }
.ipsPageHeader--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ipsPageHeader--topic { padding: 20px 24px; align-items: center; }
.ipsPageHeader__title { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.ipsPageHeader__desc { margin: 4px 0 0; color: var(--contrast-1); }
.ipsPageHeader__meta { margin: 6px 0 0; color: var(--contrast-1); font-size: 13px; }
.ipsPageHeader__meta a { color: var(--contrast-6); }
.ipsPhotoPanel { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ipsPhotoPanel .ipsPageHeader__meta { margin: 0; }
.ipsLayout__columns { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.ipsLayout__columns--flip { grid-template-columns: 350px minmax(0, 1fr); }
.ipsLayout__secondary { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.ipsBox {
background: var(--base-1); border: 1px solid var(--base-4); border-radius: var(--radius);
box-shadow: var(--shadow); margin: 0 0 16px;
}
.ipsBox__header {
display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 20px;
border-bottom: 1px solid var(--base-4); font-size: 16px; font-weight: 600; color: var(--contrast-6);
}
.ipsBox__header .ic { margin-right: 8px; color: var(--primary); }
.ipsEmpty { padding: 24px 20px; color: var(--contrast-1); list-style: none; }
.ipsMessage { padding: 12px 16px; margin: 0 0 16px; border-radius: var(--radius); border: 1px solid; }
.ipsMessage--success { background: #e9f8ef; border-color: #a9dfbd; color: #155d33; }
/* --- buttons */
.ipsButton, a.ipsButton, button.ipsButton {
display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
border: 1px solid transparent; border-radius: var(--radius); background: var(--base-1); color: var(--contrast-6);
font: 500 14px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; white-space: nowrap;
}
.ipsButton.ipsButton--primary { background: var(--primary); color: var(--primary-contrast); }
.ipsButton.ipsButton--primary:hover { background: #3a77f0; color: var(--primary-contrast); }
.ipsButton.ipsButton--soft { background: color-mix(in srgb, var(--primary) 10%, var(--base-1)); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 20%, transparent); }
.ipsButton.ipsButton--soft:hover { background: color-mix(in srgb, var(--primary) 16%, var(--base-1)); color: var(--primary); }
.ipsButton.ipsButton--text { background: transparent; color: inherit; }
.ipsButton.ipsButton--text:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.ipsHeader .ipsButton.ipsButton--text { color: var(--base-1); }
.ipsButton.ipsButton--small { height: 30px; padding: 0 10px; font-size: 13px; }
.ipsButton.danger { color: #c4262e; }
.ipsButtons { display: flex; gap: 8px; flex-wrap: wrap; }
.ipsButtonBar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 20px; border-bottom: 1px solid var(--base-4); }
.ipsButtonBar--bottom { border-bottom: 0; border-top: 1px solid var(--base-4); }
.ipsButtonBar--plain { padding: 0; border: 0; margin: 0 0 16px; }
/* pagination: little rounded squares */
.ipsPagination { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; }
.ipsPagination a, .ipsPagination .gap { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; color: var(--contrast-6); font-weight: 500; }
.ipsPagination a[href]:hover { background: var(--base-3); }
.ipsPagination a.active { background: var(--primary); color: var(--primary-contrast); }
.ipsPagination__count { margin-left: 8px; color: var(--contrast-1); }
.ipsMiniPages a { display: inline-block; min-width: 20px; padding: 0 4px; margin-right: 2px; border-radius: 4px; background: var(--base-3); text-align: center; font-size: 12px; }
/* --- lists of forums, topics and activity */
.ipsData { margin: 0; padding: 0; list-style: none; }
.ipsData__item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--base-4); }
.ipsData__item:first-child { border-top: 0; }
.ipsData__item:hover { background: var(--base-2); }
.ipsData__icon { flex: none; }
.ipsData__main { flex: 1; min-width: 0; }
.ipsData__title { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; }
.ipsData__item--unread .ipsData__title { font-weight: 700; }
.ipsData__desc { margin-top: 2px; color: var(--contrast-1); font-size: 13px; overflow-wrap: anywhere; }
.ipsData__meta { margin-top: 3px; color: var(--contrast-1); font-size: 13px; }
.ipsData__meta a { color: var(--contrast-3); }
.ipsData__stats { display: flex; gap: 20px; flex: none; margin: 0; padding: 0; list-style: none; text-align: center; }
.ipsData__stats li { display: flex; flex-direction: column; min-width: 54px; line-height: 1.25; }
.ipsData__stats-number { color: var(--contrast-6); font-size: 15px; font-weight: 600; }
.ipsData__stats-label { color: var(--contrast-1); font-size: 12px; }
.ipsData__last { display: flex; align-items: center; gap: 10px; flex: none; width: 280px; min-width: 0; font-size: 13px; }
.ipsData__last-text { min-width: 0; }
.ipsData__last-primary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--contrast-6); font-weight: 500; }
.ipsData__last-secondary { color: var(--contrast-1); }
.ipsData__last-secondary a { color: var(--contrast-3); }
.ipsData--topics .ipsData__last { width: 200px; }
.ipsForumIcon {
display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px;
background: var(--base-3); color: var(--base-6); font-size: 20px;
}
.ipsForumIcon.unread { background: var(--primary); color: var(--primary-contrast); box-shadow: 0 3px 8px -2px color-mix(in srgb, var(--primary) 60%, transparent); }
.ipsIndicator { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--primary); vertical-align: 2px; }
.ipsBadge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: 2px; }
.ipsBadge--hot { background: #fde3d4; color: #c2410c; }
.ipsBadge--staff { background: var(--secondary); color: #fff; }
/* --- widgets in the side column */
.ipsWidget { margin: 0; }
.ipsWidget__header { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--base-4); font-size: 15px; font-weight: 600; }
.ipsWidget__count { color: var(--contrast-1); font-size: 13px; font-weight: 400; }
.ipsWidget__content { padding: 14px 18px; }
.ipsWidget__content p { margin: 0; }
.ipsOnline { display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 6px 0; font-weight: 500; }
.ipsStatGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ipsStatGrid li { display: flex; flex-direction: column; }
.ipsStatGrid__number { color: var(--contrast-6); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.ipsStatGrid__label { color: var(--contrast-1); font-size: 12px; }
.ipsFacts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.ipsFacts dt { color: var(--contrast-1); }
.ipsFacts dd { margin: 0; color: var(--contrast-6); overflow-wrap: anywhere; }
/* --- posts: the author beside, reactions beneath */
.ipsEntry { display: flex; overflow: hidden; }
.ipsEntry__author { flex: none; width: 200px; padding: 20px 16px; text-align: center; background: var(--base-2); border-right: 1px solid var(--base-4); }
.ipsEntry__author-photo { position: relative; display: inline-block; }
.ipsEntry__author-photo .ipsBadge--staff { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); }
.ipsEntry__username { margin: 12px 0 2px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.ipsEntry__group { display: inline-block; color: var(--contrast-1); font-size: 13px; }
.ipsEntry__group.admin { color: #c4262e; font-weight: 600; }
.ipsEntry__author-stats { display: flex; justify-content: center; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--contrast-1); font-size: 12px; }
.ipsEntry__author-stats li { display: inline-flex; align-items: center; gap: 5px; }
.ipsEntry__where { margin-top: 6px; font-size: 12px; }
.ipsEntry__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ipsEntry__header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px 0; color: var(--contrast-1); font-size: 13px; }
.ipsEntry__header a { color: var(--contrast-3); }
.ipsEntry__share { display: inline-flex; align-items: center; gap: 6px; }
.ipsRichText { flex: 1; padding: 14px 22px; color: var(--contrast-6); font-size: 15.4px; line-height: 1.6; overflow-wrap: anywhere; }
.ipsRichText a, .bbc_url { color: var(--primary); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.ipsEntry__footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px 12px 22px; }
.ipsEntry__controls { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--contrast-3); }
.ipsReact { display: flex; align-items: center; gap: 8px; }
.ipsReact__button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--base-4); border-radius: 999px; background: var(--base-1); color: var(--contrast-3); font: 500 13px system-ui, sans-serif; cursor: pointer; }
.ipsReact__button:hover { border-color: var(--base-6); color: var(--contrast-6); }
.ipsReact__button.reacted { border-color: color-mix(in srgb, var(--primary) 40%, transparent); background: color-mix(in srgb, var(--primary) 8%, var(--base-1)); color: var(--primary); }
.ipsReact__count { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--base-3); color: var(--contrast-6); font-size: 13px; font-weight: 600; }
.react-like { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #e5484d; color: #fff; font-size: 11px; line-height: 1; }
/* quotes: a soft panel with a coloured edge */
.citation { margin: 12px 0 0; padding: 8px 14px; border-left: 3px solid var(--primary); border-radius: 0 6px 0 0; background: var(--base-3); color: var(--contrast-6); font-size: 13px; font-weight: 600; }
blockquote.quote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--primary); border-radius: 0 6px 6px 0; background: var(--base-2); font-size: 14.5px; }
blockquote.quote:not(.citation + blockquote.quote) { border-radius: 0 6px 6px 0; margin-top: 12px; }
.citation + blockquote.quote { border-radius: 0 0 6px 0; }
/* polls */
.ipsPoll__body { padding: 16px 20px; }
.ipsPoll__results { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ipsPoll__choice { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; color: var(--contrast-6); font-weight: 500; }
.ipsPoll__results li.mine .ipsPoll__choice { color: var(--primary); }
meter { display: block; width: 100%; height: 8px; }
meter::-webkit-meter-bar { background: var(--base-3); border: 0; border-radius: 999px; height: 8px; }
meter::-webkit-meter-optimum-value { background: var(--primary); border-radius: 999px; }
meter::-moz-meter-bar { background: var(--primary); border-radius: 999px; }
.ipsPoll__vote { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; border-top: 1px solid var(--base-4); }
/* the reply box */
.ipsComposeArea { display: flex; gap: 14px; padding: 18px 20px; }
.ipsComposeArea__photo { flex: none; }
.ipsComposeArea__editor { flex: 1; min-width: 0; }
.ipsComposeArea textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--base-4); border-radius: var(--radius); background: var(--base-1); color: var(--contrast-6); font: 15px/1.5 system-ui, sans-serif; resize: vertical; }
.ipsComposeArea textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); border-color: var(--primary); }
.ipsComposeArea__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ipsSignIn { padding: 28px; text-align: center; }
.ipsSignIn h3 { margin: 0 0 6px; font-size: 18px; }
.ipsSignIn__buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
/* the profile */
.ipsProfileHeader { overflow: hidden; }
.ipsProfileHeader__cover { height: 160px; background: linear-gradient(120deg, var(--contrast-4), #2f4a78 55%, var(--primary)); }
.ipsProfileHeader__bar { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 0 24px 18px; }
.ipsProfileHeader__photo { margin-top: -48px; }
.ipsProfileHeader__photo .avatar { border: 4px solid var(--base-1); box-shadow: var(--shadow); }
.ipsProfileHeader__name { flex: 1; min-width: 200px; }
.ipsProfileHeader__name h1 { margin: 0; font-size: 26px; font-weight: 600; }
.ipsProfileHeader__name p { margin: 0; }
.ipsProfileHeader__stats { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.ipsProfileHeader__stats li { display: flex; flex-direction: column; }
.ipsOnlineDot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #22a35a; }
/* --- forms and the default theme's pages that this one shows as they are */
input, textarea, select, button { font: inherit; }
input[type=text], input[type=password], input[type=email], input[type=search]:not(.ipsSearch input), textarea, select {
padding: 8px 10px; border: 1px solid var(--base-4); border-radius: 6px; background: var(--base-1); color: var(--contrast-6);
}
textarea { width: 100%; }
.box { margin: 0 0 16px; background: var(--base-1); border: 1px solid var(--base-4); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.box > h2.maintitle { display: flex; gap: 8px; margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--base-4); color: var(--contrast-6); font-size: 16px; font-weight: 600; }
.box .count { margin-left: auto; font-weight: 400; color: var(--contrast-1); }
.box-body { padding: 18px 20px; }
.box.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.field { display: grid; grid-template-columns: 35% 1fr; align-items: center; gap: 8px; padding: 6px 0; color: var(--contrast-6); font-weight: 500; }
.field input, .field textarea { font-weight: 400; }
.editor .field { grid-template-columns: 1fr; }
.editor-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.button, button.button, a.button {
display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border: 1px solid var(--base-4); border-radius: var(--radius);
background: var(--base-1); color: var(--contrast-6); font-weight: 500; cursor: pointer;
}
.button.important { background: var(--primary); border-color: var(--primary); color: var(--primary-contrast); }
.button:hover { border-color: var(--base-6); }
.button.important:hover { background: #3a77f0; }
.signin .desc { margin-bottom: 8px; color: var(--contrast-1); }
.desc { color: var(--contrast-1); font-size: 13px; }
.poll-maker { margin: 10px 0; }
.poll-maker summary { cursor: pointer; font-weight: 600; color: var(--contrast-6); }
.searchform { display: flex; gap: 8px; }
.searchform input { flex: 1; }
.message.error { color: #c4262e; font-weight: 600; }
p.message { padding: 12px 16px; border: 1px solid var(--base-4); border-radius: var(--radius); background: var(--base-2); }
table.board { width: 100%; border-collapse: collapse; }
table.board th { padding: 10px 20px; border-bottom: 1px solid var(--base-4); color: var(--contrast-1); font-size: 12px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: 0.03em; }
table.board td { padding: 12px 20px; border-top: 1px solid var(--base-4); vertical-align: top; }
table.board h3 { margin: 0; font-size: 15px; font-weight: 500; }
.snippet { color: var(--contrast-1); font-size: 13px; }
td.none { text-align: center; color: var(--contrast-1); }
.time { color: var(--contrast-1); }
/* round photos with initials */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: #fff; font-weight: 600; vertical-align: middle; }
.avatar.tiny { width: 22px; height: 22px; font-size: 11px; }
.avatar.mini { width: 34px; height: 34px; font-size: 15px; }
.avatar.fluid { width: 40px; height: 40px; font-size: 17px; }
.avatar.large { width: 90px; height: 90px; font-size: 38px; }
.avatar.huge { width: 120px; height: 120px; font-size: 52px; }
.av0 { background: #3b6fd8; } .av1 { background: #d0554b; } .av2 { background: #2f9e67; }
.av3 { background: #8458d1; } .av4 { background: #d6892a; } .av5 { background: #1f97a8; }
.av6 { background: #c2438c; } .av7 { background: #6f8a2d; } .av8 { background: #d76b3a; }
.av9 { background: #53647d; } .av10 { background: #138a63; } .av11 { background: #b13d55; }
/* --- the foot */
.ipsFooter { background: var(--contrast-4); color: var(--base-4); font-size: 13px; }
.ipsFooter a { color: var(--base-4); }
.ipsFooter a:hover { color: var(--base-1); }
.ipsFooter__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ipsFooter__top a { display: inline-flex; align-items: center; gap: 6px; }
.ipsFooter .ipsBreadcrumb span { color: var(--base-1); }
.ipsFooter__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 0 26px; }
.ipsFooter__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.ipsFooter__copyright { margin: 0; color: var(--base-6); }
.themepicker { display: inline-flex; align-items: center; gap: 6px; }
.themepicker select { padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: var(--base-1); font-size: 13px; }
.themepicker select option { color: #000; }
.themepicker .button { height: 28px; padding: 0 10px; background: transparent; border-color: rgba(255,255,255,0.25); color: var(--base-1); font-size: 13px; }
/* --- narrow screens */
@media (max-width: 1100px) {
.ipsLayout__columns, .ipsLayout__columns--flip { grid-template-columns: minmax(0, 1fr); }
.ipsLayout__secondary { position: static; }
.ipsData__last { width: 220px; }
}
@media (max-width: 760px) {
.ipsWidth { padding: 0 12px; }
.ipsHeader__primary .ipsHeader__row { min-height: 60px; flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
.ipsLogo { font-size: 18px; }
.ipsLogo__text { max-width: 200px; }
.ipsNav { order: 3; flex-basis: 100%; }
.ipsNav a { height: 34px; padding: 0 10px; }
.ipsUserNav__name { display: none; }
.ipsHeader__secondary .ipsHeader__row { flex-wrap: wrap; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.ipsSearch { width: 100%; }
.ipsLayout__main { padding-top: 14px; }
.ipsPageHeader__title { font-size: 21px; }
.ipsPageHeader--topic { padding: 14px 16px; }
.ipsData__item { flex-wrap: wrap; gap: 10px 12px; padding: 14px; }
.ipsData__main { flex-basis: calc(100% - 70px); }
.ipsData__stats { display: none; }
.ipsData__last, .ipsData--topics .ipsData__last { width: 100%; padding-left: 58px; }
.ipsEntry { flex-direction: column; }
.ipsEntry__author { width: auto; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 12px 16px; text-align: left; border-right: 0; border-bottom: 1px solid var(--base-4); }
.ipsEntry__author-photo { grid-row: span 3; }
.ipsEntry__author .avatar.large { width: 44px; height: 44px; font-size: 19px; }
.ipsEntry__author-photo .ipsBadge--staff { display: none; }
.ipsEntry__username { margin: 0; }
.ipsEntry__author-stats { justify-content: flex-start; margin: 2px 0 0; }
.ipsEntry__header, .ipsRichText { padding-left: 16px; padding-right: 16px; }
.ipsEntry__footer { padding-left: 16px; }
.ipsProfileHeader__cover { height: 100px; }
.ipsProfileHeader__stats { gap: 18px; }
.field { grid-template-columns: 1fr; }
}
/* the country database's credit, where posters' flags are shown */
.geocredit { text-align: center; font-size: 11px; margin: 8px 0 16px; }