*{
    box-sizing: border-box;
}
:root{
    color-scheme: light;
    --ink: #122b49;
    --muted: #52657b;
    --blue: #164bb0;
    --line: #dce5ed;
}
body{
    margin: 0;
    background: #f1f5f9;
    color: var(--ink);
    font-family: system-ui, "Microsoft YaHei", sans-serif;
    line-height: 1.8;
}
a{
    color: var(--blue);
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}
a:focus-visible{
    outline: 3px solid #168d90;
    outline-offset: 4px;
}
img{
    display: block;
    max-width: 100%;
    height: auto;
}
h1,h2,h3,p{
    margin: 0 0 14px;
}
h1{
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.25;
}
h2{
    font-size: 24px;
    line-height: 1.4;
}
h3{
    font-size: 19px;
    line-height: 1.45;
}
.wrap{
    max-width: 1320px;
    width: calc(100% - 56px);
    margin: auto;
}
.top{
    background: white;
    border-bottom: 1px solid var(--line);
}
.top-inner,.foot-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}
.brand{
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--ink);
    font-weight: 800;
    font-size: 23px;
    line-height: 1.25;
}
.brand small{
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
}
.shell{
    display: grid;
    grid-template-columns: 220px minmax(0,1fr);
    gap: 30px;
    padding: 34px 0 50px;
    align-items: start;
}
.sidebar{
    background: #fff;
    padding: 24px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.eyebrow{
    font-size: 12px;
    letter-spacing: 1.6px;
    font-weight: 800;
    color: #286177;
}
nav a{
    display: block;
    padding: 9px 13px;
    margin: 4px 0;
    border-radius: 8px;
    color: var(--ink);
}
nav a[aria-current="page"]{
    background: #e1f3f3;
    font-weight: 750;
    color: #105e64;
}
.note{
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.hero{
    background: #102a51;
    color: white;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    align-items: stretch;
}
.hero-copy{
    padding: clamp(24px,4vw,48px);
}
.hero .eyebrow{
    color: #86e8d5;
}
.hero p{
    color: #dbe9fa;
}
.hero img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 330px;
}
.button{
    display: inline-block;
    background: #a5f1df;
    color: #103448;
    font-weight: 750;
    padding: 11px 17px;
    border-radius: 9px;
}
.quick,.topics,.check{
    margin-top: 30px;
}
.quick-links{
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
}
.quick-links a{
    background: white;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.tiles{
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}
.tile{
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 38% minmax(0,1fr);
}
.tile:first-child{
    grid-column: 1 / -1;
    grid-template-columns: 34% minmax(0,1fr);
}
.tile img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tile-text{
    padding: 20px;
}
.tile-text p:not(.eyebrow){
    color: var(--muted);
    font-size: 14px;
}
.tile h3 a{
    color: var(--ink);
}
.read{
    font-size: 14px;
    font-weight: 700;
}
.check{
    padding: 28px;
    border-radius: 16px;
    background: #dcf3ef;
}
.article{
    background: white;
    padding: clamp(22px,4vw,54px);
    border-radius: 20px;
    border: 1px solid var(--line);
}
.article section{
    margin-top: 28px;
}
.article p{
    max-width: 75ch;
}
.article figure{
    margin: 24px 0;
}
.article figure img{
    width: min(100%,520px);
    border-radius: 14px;
}
figcaption,.crumb,.intro{
    color: var(--muted);
}
figcaption{
    font-size: 13px;
    margin-top: 8px;
}
.related{
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.footer{
    border-top: 1px solid var(--line);
    background: white;
    font-size: 13px;
}
.skip{
    position: absolute;
    top: -100px;
    background: white;
    padding: 8px;
}
.skip:focus{
    top: 0;
    z-index: 10;
}
@media (max-width: 1000px) {
  .shell{
    grid-template-columns: 175px minmax(0,1fr);
    gap: 16px;
}
  .tiles{
    grid-template-columns: 1fr;
}
  .tile:first-child{
    grid-column: auto;
}
  .hero{
    grid-template-columns: 1fr;
}
  .hero img{
    max-height: 360px;
    min-height: 0;
}
}
@media (max-width: 650px) {
  .wrap{
    width: calc(100% - 28px);
}
  .shell{
    display: block;
    padding-top: 15px;
}
  .sidebar{
    margin-bottom: 18px;
    padding: 12px;
}
  nav{
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
  nav a{
    font-size: 13px;
    padding: 5px 8px;
}
  .note{
    display: none;
}
  .quick-links{
    grid-template-columns: 1fr;
}
  .tile,.tile:first-child{
    grid-template-columns: 1fr;
}
  .tile img{
    height: 210px;
}
  .foot-inner{
    flex-wrap: wrap;
}
}

/* Layout refinements */
main {
    min-width: 0;
    overflow-wrap: anywhere;
}
.note p {
    margin: 0 0 4px;
}
.tile > a {
    display: block;
    min-width: 0;
}
.self-check {
    padding-left: 1.4em;
}
@media (min-width: 1001px) {
    .tile:not(:first-child) {
        grid-template-columns: 1fr;
    }
    .tile:not(:first-child) img {
        aspect-ratio: 16 / 10;
        height: auto;
    }
}
