* {
    padding: 0;
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    box-sizing: border-box;
}

:root {
    color: #172b4d;
    background: #f4f7fb;
    font-size: 16px;
}

body {
    min-width: 320px;
    color: #172b4d;
    background: #f4f7fb;
    line-height: 1.55;
}

i {
    margin-right: 5px;
}

.iconbutton i {
    margin-right: 0;
}

a {
    color: #126b67;
}

a:hover {
    color: #0b514e;
}

nav {
    position: relative;
    z-index: 1;
    padding: 14px 0;
    background: #102a43;
    color: #fff;
    box-shadow: 0 2px 12px rgba(16, 42, 67, 0.16);
}

nav a,
main {
    width: calc(100% - 40px);
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}

nav a {
    display: block;
    color: #fff !important;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

nav a i {
    color: #43d5bd;
    vertical-align: middle;
}

main {
    padding-top: 28px;
    padding-bottom: 36px;
}

textarea,
input,
select {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #172b4d;
    font-size: 1rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #168f83;
    outline: 3px solid rgba(22, 143, 131, 0.18);
}

form[action='/create'] {
    display: flex;
    width: 100%;
    margin: 18px 0 24px;
}

form[action='/create'] input {
    min-width: 0;
    border-radius: 9px 0 0 9px;
}

button {
    border: 0;
    background: #13877e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
}

button:hover {
    background: #0d6f68;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #f5b942;
    outline-offset: 3px;
}

.iconbutton {
    flex: 0 0 58px;
    border-radius: 0 9px 9px 0;
    font-size: 1.25rem;
}

form button:not(.iconbutton) {
    margin: 14px 0 0;
    padding: 12px 20px;
    border-radius: 7px;
}

.message {
    margin: 0 0 12px;
    color: #486581;
    font-size: 1.05rem;
}

table {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

td,
th {
    padding: 12px 16px;
    border-bottom: 1px solid #e1e8f0;
    text-align: left;
}

th {
    width: 42%;
    color: #486581;
    font-weight: 600;
}

tr:last-child td,
tr:last-child th {
    border-bottom: 0;
}

.chip {
    display: inline-block;
    margin: 4px 5px 4px 0;
    padding: 7px 12px;
    border: 1px solid #cce8e4;
    border-radius: 999px;
    background: #e8f6f3;
    color: #126b67 !important;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.chip:hover {
    border-color: #8bcfc5;
    background: #d7efea;
}

article {
    margin: 0;
    padding: 16px 0;
}

article:not(:last-child) {
    border-bottom: 1px solid #e1e8f0;
}

article header a {
    display: inline-block;
    margin-bottom: 5px;
    color: #126b67 !important;
    font-weight: 700;
    text-decoration: none;
}

article p {
    color: #334e68;
    overflow-wrap: anywhere;
}

article footer {
    margin-top: 6px;
    color: #829ab1;
    font-size: 0.88rem;
}

label {
    display: block;
    margin: 14px 0 6px;
    color: #334e68;
    font-weight: 600;
}

.errors {
    margin: 0 0 16px;
    color: #fff;
    font-weight: 700;
}

.errors li {
    display: block;
    margin: 8px 0;
    padding: 12px 16px;
    border-radius: 7px;
    background: #b42318;
}

.success {
    margin: 0 0 16px;
    padding: 14px 18px;
    border-radius: 7px;
    background: #e6f4ea;
    color: #216e39;
}

main > footer {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #d9e2ec;
    color: #627d98;
    font-size: 0.9rem;
}

main > footer a {
    color: #486581;
    text-decoration: none;
}

main > footer a:hover {
    text-decoration: underline;
}

.backtoprefix {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #d9e2ec;
    color: #126b67 !important;
    text-decoration: none;
}

.backtoprefix i {
    vertical-align: middle;
}

.more {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 16px;
    border-radius: 7px;
    background: #e8f6f3;
    color: #126b67;
    font-weight: 700;
    text-decoration: none;
}

.home {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 10px 0 24px;
}

.intro {
    margin: 34px 0 30px;
}

.intro-heading {
    max-width: 680px;
    margin-bottom: 20px;
}

.intro-heading .eyebrow {
    margin-bottom: 5px;
    color: #13877e;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-heading h2 {
    margin-bottom: 7px;
    color: #102a43;
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.2;
}

.intro-heading > p:last-child {
    color: #627d98;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.intro-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 42, 67, 0.04);
}

.intro-card .intro-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    border-radius: 10px;
    background: #e8f6f3;
    color: #13877e;
    font-size: 22px;
}

.intro-card h3 {
    margin-bottom: 6px;
    color: #102a43;
    font-size: 1.08rem;
    line-height: 1.3;
}

.intro-card p {
    color: #627d98;
    font-size: 0.96rem;
}

.intro-note {
    margin-top: 14px;
    color: #627d98;
    font-size: 0.9rem;
}

.home .posts,
.home .side-list {
    min-width: 0;
    padding: 20px 24px;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 42, 67, 0.05);
}

.home .posts {
    flex: 1 1 auto;
}

.home .side-list {
    flex: 0 0 260px;
}

.home h2 {
    margin-bottom: 8px;
    color: #102a43;
    font-size: 1.45rem;
    line-height: 1.25;
}

.home .side-list a {
    display: block;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    color: #126b67 !important;
    font-weight: 600;
    text-decoration: none;
}

.home .side-list a:last-child {
    border-bottom: 0;
}

.number-page {
    margin-top: 12px;
}

.number-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 18px;
    font-weight: 600;
    text-decoration: none;
}

.number-back .material-icons {
    font-size: 19px;
}

.number-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.number-eyebrow {
    margin-bottom: 5px;
    color: #13877e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.number-heading h1 {
    color: #102a43;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.number-heading > div > p:last-child {
    margin-top: 6px;
    color: #627d98;
}

.number-action {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: 8px;
    background: #13877e;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.number-action:hover {
    background: #0d6f68;
    color: #fff;
}

.number-action .material-icons {
    font-size: 19px;
}

.number-share {
    margin: -4px 0 20px;
}

.number-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.number-share-actions[hidden],
.number-share-fallback[hidden] {
    display: none;
}

.number-share-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #cbdedb;
    border-radius: 8px;
    background: #fff;
    color: #126b67;
    font-size: 0.95rem;
}

.number-share-button:hover {
    background: #e8f6f3;
}

.number-share-button .material-icons {
    font-size: 18px;
}

.number-share-status {
    color: #486581;
    font-size: 0.9rem;
}

.number-share-status:not(:empty) {
    margin-top: 8px;
}

.number-share-fallback {
    max-width: 500px;
}

.number-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
    padding: 18px 0;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 42, 67, 0.04);
}

.number-stats > div {
    min-width: 0;
    padding: 0 22px;
}

.number-stats > div + div {
    border-left: 1px solid #e1e8f0;
}

.number-stat-value,
.number-stat-label {
    display: block;
}

.number-stat-value {
    color: #102a43;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.number-type {
    text-transform: capitalize;
}

.number-stat-label {
    margin-top: 4px;
    color: #627d98;
    font-size: 0.9rem;
}

.number-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    align-items: start;
    gap: 20px;
}

.number-primary,
.number-secondary {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.number-panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 42, 67, 0.04);
}

.number-panel h2,
.number-safety h2 {
    color: #102a43;
    font-size: 1.3rem;
    line-height: 1.25;
}

.activity-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
}

.activity-table {
    border: 0;
    border-radius: 0;
    font-size: 0.88rem;
}

.activity-table caption {
    text-align: left;
    color: #486581;
    font-weight: 600;
    padding-bottom: 8px;
}

.activity-table th,
.activity-table td {
    width: auto;
    padding: 8px;
    vertical-align: middle;
}

.activity-table thead th {
    font-size: 0.8rem;
    line-height: 1.2;
}

.activity-table tbody th {
    white-space: normal;
}

.activity-value {
    font-weight: 700;
}

.activity-track {
    display: block;
    height: 6px;
    margin-top: 4px;
    border-radius: 6px;
    background: #e8eef3;
}

.activity-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #13877e;
}

.activity-bar-votes {
    background: #5273a1;
}

.number-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.number-count {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f6f3;
    color: #126b67;
    font-size: 0.85rem;
    font-weight: 700;
}

.number-muted,
.number-form-help {
    margin-top: 8px;
    color: #627d98;
    font-size: 0.92rem;
}

#number-comment {
    scroll-margin-top: 24px;
}

.number-panel:focus-within {
    border-color: #8bcfc5;
}

.number-comments {
    margin-top: 8px;
}

.comment-sort {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 0;
    background: transparent;
    color: #627d98;
    box-shadow: none;
    font-size: 0.9rem;
}

.comment-sort a {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 5px 10px;
    border-radius: 6px;
    color: #126b67 !important;
    font-size: 0.9rem;
    text-decoration: none;
}

.comment-sort a.is-current {
    background: #e8f6f3;
}

.prefix-comment-filters[hidden] {
    display: none;
}

.prefix-comment-filters button {
    padding: 5px 10px;
    border-radius: 6px;
    background: transparent;
    color: #126b67;
    font-size: 0.9rem;
    font-weight: 400;
}

.prefix-comment-filters button:hover,
.prefix-comment-filters button[aria-pressed="true"] {
    background: #e8f6f3;
}

.comment-helpful {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

form.comment-helpful button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0 0;
    padding: 7px 10px;
    border: 1px solid #cbdedb;
    background: #fff;
    color: #126b67;
    font-size: 0.9rem;
}

form.comment-helpful button:hover,
form.comment-helpful button.is-selected {
    background: #e8f6f3;
    border-color: #8bcfc5;
}

.comment-helpful .material-icons {
    font-size: 16px;
}

.comment-helpful-count {
    margin-top: 10px;
    color: #627d98;
    font-size: 0.85rem;
}

.classification-summary {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d5ebe7;
    border-radius: 9px;
    background: #f2faf8;
}

.classification-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.classification-vote form .classification-button {
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #b8dcd6;
    border-radius: 8px;
    background: #f2faf8;
    color: #126b67;
}

.classification-vote form .classification-button:hover,
.classification-vote form .classification-button.is-selected {
    border-color: #126b67;
    background: #126b67;
    color: #fff;
}

.classification-confirmation {
    margin-top: 12px;
    color: #126b67;
    font-weight: 600;
    font-size: 0.92rem;
}

.classification-summary h3 {
    color: #102a43;
    font-size: 1rem;
}

.classification-summary p {
    margin-top: 5px;
    color: #526e7f;
    font-size: 0.88rem;
}

.classification-summary ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    list-style: none;
}

.classification-summary li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    background: #fff;
    color: #334e68;
    font-size: 0.9rem;
}

.classification-summary strong {
    color: #126b67;
}

.classification-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e8f6f3;
    color: #126b67;
    font-size: 0.82rem;
    font-weight: 700;
}

.comment-optional {
    color: #627d98;
    font-weight: 400;
}

.number-comments article header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #486581;
    font-size: 0.9rem;
    font-weight: 700;
}

.number-comments article header .material-icons {
    color: #13877e;
    font-size: 21px;
}

.number-comments article p {
    white-space: pre-wrap;
}

.number-empty {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    padding: 18px;
    border-radius: 9px;
    background: #f4f8fa;
}

.number-empty > .material-icons,
.number-safety > .material-icons {
    flex-shrink: 0;
    color: #13877e;
}

.number-empty h3 {
    color: #102a43;
    font-size: 1rem;
}

.number-empty p {
    margin: 4px 0 8px;
    color: #627d98;
    font-size: 0.92rem;
}

.number-empty a {
    font-weight: 700;
}

.number-details {
    margin-top: 14px;
}

.number-details > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.94rem;
}

.number-details dt {
    color: #627d98;
}

.number-details dd {
    color: #172b4d;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.number-related p:not(.number-eyebrow) {
    margin-top: 8px;
    color: #486581;
    font-size: 0.92rem;
}

.number-related ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.number-related li a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #cbdedb;
    border-radius: 8px;
    color: #126b67;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.number-related li a:hover {
    background: #e8f6f3;
}

.number-related-browse {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.92rem;
    font-weight: 700;
}

.prefix-stats-note {
    margin: -8px 0 20px;
    color: #627d98;
    font-size: 0.9rem;
}

#prefix-finder {
    scroll-margin-top: 24px;
}

.prefix-finder-input {
    display: flex;
    align-items: stretch;
}

.prefix-finder-input > span {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f4f8fa;
    color: #334e68;
    font-weight: 700;
}

.prefix-finder-input input {
    min-width: 0;
    border-radius: 0 8px 8px 0;
}

.prefix-number-list {
    margin-top: 16px;
    list-style: none;
}

.prefix-number-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
}

.prefix-number-list li:last-child {
    border-bottom: 0;
}

.prefix-number-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.prefix-number-list .material-icons {
    font-size: 17px;
}

.prefix-number-list li > span {
    flex-shrink: 0;
    color: #627d98;
    font-size: 0.9rem;
}

.prefix-recent-list li {
    flex-wrap: wrap;
}

.prefix-recent-list li > span {
    flex-shrink: 1;
}

.prefix-comments article header a {
    margin-bottom: 0;
}

#prefix-comment-number {
    scroll-margin-top: 24px;
}

.number-safety {
    display: flex;
    gap: 12px;
    padding: 20px;
    border: 1px solid #cce8e4;
    border-radius: 12px;
    background: #e8f6f3;
}

.number-safety > div {
    min-width: 0;
}

.number-safety-link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
}

.number-safety h2 {
    font-size: 1.05rem;
}

.number-safety h3 {
    margin: 16px 0 0;
    color: #102a43;
    font-size: 0.95rem;
}

.number-safety p {
    margin-top: 6px;
    color: #42635f;
    font-size: 0.92rem;
}

.number-safety a {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.number-safety-emergency {
    padding-top: 12px;
    border-top: 1px solid #cce8e4;
}

.hero {
    display: flex;
    min-height: 470px;
    justify-content: center;
    align-items: center;
    padding: 54px 0;
    background-color: #102a43;
    background-image: linear-gradient(105deg, rgba(9, 31, 51, 0.88), rgba(9, 31, 51, 0.45)), url('/img/uk7.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero .content {
    width: calc(100% - 40px);
    max-width: 960px;
    padding: 20px 0;
    color: #fff;
}

.hero .content h1 {
    max-width: 760px;
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero .content p {
    max-width: 680px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero form[action='/create'] {
    max-width: 760px;
    margin: 24px 0 0;
    padding: 5px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero form[action='/create'] input {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.hero .iconbutton {
    flex-basis: 58px;
    border-radius: 8px;
}

.h-captcha {
    margin-top: 10px;
}

.noindextxt {
    pointer-events: none !important;
    direction: rtl;
    unicode-bidi: bidi-override;
    text-align: left;
    user-select: none;
}

@media (max-width: 700px) {
    nav {
        padding: 12px 0;
    }

    nav a,
    main,
    .hero .content {
        width: calc(100% - 32px);
    }

    .hero {
        min-height: 400px;
        padding: 38px 0;
        background-position: 58% center;
    }

    .hero .content h1 {
        max-width: 580px;
    }

    .home {
        flex-direction: column;
    }

    .intro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .number-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .number-grid {
        grid-template-columns: 1fr;
    }

    .home .posts,
    .home .side-list {
        width: 100%;
        flex-basis: auto;
        padding: 18px;
    }
}

@media (max-width: 420px) {
    .hero {
        min-height: 370px;
    }

    .hero .content h1 {
        font-size: 2rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .number-stats > div {
        padding: 0 12px;
    }

    .number-stat-value {
        font-size: 1.15rem;
    }

    .number-panel {
        padding: 18px;
    }

    .number-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .classification-summary ul {
        grid-template-columns: 1fr;
    }

    .hero form[action='/create'] {
        margin-top: 18px;
    }

    .iconbutton {
        flex-basis: 50px;
    }

    td,
    th {
        padding: 10px 12px;
    }
}
