/* ==========================================================================
   RMUTL Graduates Search — Gold / Orange / White theme
   Dependency-free. Cross-browser: Chrome, Edge, Firefox, Safari (macOS/iOS 10+),
   Samsung Internet, Opera, Android WebView, LINE/Facebook in-app browsers,
   and degrades gracefully on Internet Explorer 11.

   Compatibility rules used in this file:
   - No CSS custom properties (literal colors; palette documented below)
   - No CSS Grid and no flexbox `gap` (margins instead; Safari < 14.1, IE11)
   - No logical properties (margin-inline, inset, ...)
   - Every clamp()/gradient-text has a plain fallback declared first

   Palette
   gold-50  #fffaf0   gold-100 #fdf1d6   gold-200 #f7dfa3   gold-400 #d9ae3c
   gold-500 #c9971c   gold-600 #a97a10   gold-700 #7f5b0b
   orange-400 #f6a04d orange-500 #ef7f1a orange-600 #d46510
   ink #2e2416        ink-soft #6b5a42   line #f0e2c4
   ========================================================================== */

/* ---------- Base / reset ---------- */
*, *:before, *:after { -webkit-box-sizing: border-box; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}

main, header, footer, section, nav, article { display: block; } /* IE11 */

body {
  margin: 0;
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  font-family: 'Sarabun', 'Noto Sans Thai', 'Thonburi', 'Leelawadee UI', 'Leelawadee', 'Tahoma', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #2e2416;
  background-color: #fffaf0;
  background-image:
    radial-gradient(1200px 500px at 100% -10%, rgba(239, 127, 26, .10), rgba(239, 127, 26, 0) 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(201, 151, 28, .12), rgba(201, 151, 28, 0) 60%);
  background-repeat: no-repeat;
  -webkit-tap-highlight-color: rgba(239, 127, 26, .15);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; border: 0; }
svg:not(:root) { overflow: hidden; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.3; margin: 0; }
button { overflow: visible; text-transform: none; }

a { color: #d46510; text-decoration: underline; }
a:hover { color: #7f5b0b; }

/* Focus ring: visible for everyone; hidden for mouse users where :focus-visible exists */
a:focus, button:focus, .segmented input:focus + label {
  outline: 3px solid #f6a04d;
  outline-offset: 2px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
/* iPhone notch / rounded corners in landscape */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  color: #2e2416;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  background-color: #df8a1b;
  background-image: -webkit-linear-gradient(330deg, #c9971c 0%, #ef7f1a 100%);
  background-image: linear-gradient(120deg, #c9971c 0%, #ef7f1a 100%);
  color: #fff;
  -webkit-box-shadow: 0 4px 18px -6px rgba(212, 101, 16, .55);
  box-shadow: 0 4px 18px -6px rgba(212, 101, 16, .55);
  position: relative;
  overflow: hidden;
}
.site-header:after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    radial-gradient(500px 160px at 85% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 2px, rgba(255, 255, 255, 0) 2px, rgba(255, 255, 255, 0) 14px);
  pointer-events: none;
}
.site-header .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
  z-index: 1;
}
@supports (padding: max(0px)) {
  .site-header .container { padding-top: max(14px, env(safe-area-inset-top)); }
}
.brand-logo {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  margin-right: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  -webkit-box-shadow: 0 1px 2px rgba(127, 91, 11, .08);
  box-shadow: 0 1px 2px rgba(127, 91, 11, .08);
}
.brand-logo img { height: 44px; width: auto; max-width: none; }
.brand-text { color: #fff; text-decoration: none; min-width: 0; }
.brand-text:hover { color: #fff; }
.brand-title {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  line-height: 1.35;
}
.brand-sub {
  display: block;
  font-size: .88rem;
  font-size: clamp(.78rem, 1.8vw, .92rem);
  opacity: .92;
}

/* ---------- Hero ---------- */
.hero { padding: 36px 0 8px; text-align: center; }
.hero h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.3;
  color: #7f5b0b;
}
.hero h1 span { color: #e07b14; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 span {
    background-image: -webkit-linear-gradient(330deg, #c9971c 0%, #ef7f1a 100%);
    background-image: linear-gradient(120deg, #c9971c 0%, #ef7f1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.hero p { margin: 0; color: #6b5a42; }

/* ---------- Layout ---------- */
main {
  -webkit-box-flex: 1;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
  padding-bottom: 40px;
}

/* Two columns on desktop, stacked (search first) on phones/tablets */
.grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 24px;
}
.grid > .search-card { -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1; }
.grid > .info-card   { -webkit-box-ordinal-group: 3; -ms-flex-order: 2; order: 2; margin-top: 24px; }

@media (min-width: 900px) {
  .grid {
    -webkit-box-orient: horizontal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }
  .grid > .info-card {
    -webkit-box-ordinal-group: 1; -ms-flex-order: 0; order: 0;
    -ms-flex: 0 0 40%;
    flex: 0 0 40%;
    max-width: 40%;
    margin-top: 0;
    margin-right: 24px;
  }
  .grid > .search-card {
    -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
  }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid #f0e2c4;
  border-radius: 20px;
  -webkit-box-shadow: 0 10px 30px -12px rgba(127, 91, 11, .28), 0 2px 6px rgba(127, 91, 11, .06);
  box-shadow: 0 10px 30px -12px rgba(127, 91, 11, .28), 0 2px 6px rgba(127, 91, 11, .06);
  overflow: hidden;
}
.card-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px 22px;
  background-color: #fdf1d6;
  background-image: -webkit-linear-gradient(left, #fdf1d6, #fff);
  background-image: linear-gradient(90deg, #fdf1d6, #fff);
  border-bottom: 1px solid #f0e2c4;
}
.card-header h2 { margin: 0; font-size: 1.1rem; line-height: 1.4; color: #7f5b0b; }
.card-header .icon { color: #ef7f1a; margin-right: 10px; }
.card-body { padding: 22px; }

/* ---------- Info card ---------- */
.info-card .card-body {
  text-align: center;
  background-image: -webkit-linear-gradient(top, #fffaf0 0%, #fff 60%);
  background-image: linear-gradient(180deg, #fffaf0 0%, #fff 60%);
}
.info-card .seal {
  display: block;
  width: 120px;
  margin: 4px auto 14px;
  -webkit-filter: drop-shadow(0 6px 10px rgba(169, 122, 16, .25));
  filter: drop-shadow(0 6px 10px rgba(169, 122, 16, .25));
}
.info-card h3 { margin: 0 0 4px; font-size: 1.08rem; color: #7f5b0b; }
.info-card address { font-style: normal; color: #6b5a42; font-size: .95rem; }
.info-card .en { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #f7dfa3; }
.contact-chip {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f7dfa3;
  color: #7f5b0b;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.contact-chip:hover { background: #fdf1d6; color: #7f5b0b; }
.contact-chip .icon { width: 18px; height: 18px; margin: -3px 8px 0 0; color: #ef7f1a; }

/* ---------- Form ---------- */
.form-logo { display: block; width: 84px; margin: 0 auto 10px; }
.field { margin: 0 0 18px; }
.field > label, .field > .label, .fieldset > legend {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2e2416;
}
.fieldset { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.fieldset legend { padding: 0; }
.hint { display: block; font-size: .85rem; color: #6b5a42; margin-top: 6px; }

.input {
  display: block;
  width: 100%;
  font-size: 16px;               /* >= 16px prevents iOS auto-zoom on focus */
  color: #2e2416;
  padding: 12px 14px;
  min-height: 48px;
  border: 1.5px solid #f7dfa3;
  border-radius: 12px;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: border-color .15s, -webkit-box-shadow .15s;
  transition: border-color .15s, box-shadow .15s;
}
.input::-webkit-input-placeholder { color: #a8957a; opacity: 1; }
.input::-moz-placeholder          { color: #a8957a; opacity: 1; }
.input:-ms-input-placeholder      { color: #a8957a; }
.input::placeholder               { color: #a8957a; opacity: 1; }
.input:hover { border-color: #d9ae3c; }
.input:focus {
  outline: none;
  border-color: #ef7f1a;
  -webkit-box-shadow: 0 0 0 4px rgba(239, 127, 26, .18);
  box-shadow: 0 0 0 4px rgba(239, 127, 26, .18);
}
.input::-ms-clear { display: none; }

/* Segmented search-type selector (radio buttons, works without JS) */
.segmented {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 4px;
  background: #fdf1d6;
  border-radius: 12px;
  border: 1px solid #f7dfa3;
}
.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.segmented label {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0%;
  flex: 1 1 0%;
  min-width: 0;
  margin: 0 2px;
  min-height: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  padding: 7px 4px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.3;
  color: #7f5b0b;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: background-color .15s, color .15s;
  transition: background-color .15s, color .15s;
}
.segmented label small { display: block; font-weight: 400; font-size: .76rem; opacity: .85; }
.segmented label:hover { background-color: rgba(255, 255, 255, .6); }
.segmented input:checked + label {
  background-color: #df8a1b;
  background-image: -webkit-linear-gradient(330deg, #c9971c 0%, #ef7f1a 100%);
  background-image: linear-gradient(120deg, #c9971c 0%, #ef7f1a 100%);
  color: #fff;
  -webkit-box-shadow: 0 4px 10px -4px rgba(212, 101, 16, .6);
  box-shadow: 0 4px 10px -4px rgba(212, 101, 16, .6);
}

/* CAPTCHA */
.captcha-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.captcha-img {
  display: block;
  width: 200px;
  max-width: -webkit-calc(100% - 56px);
  max-width: calc(100% - 56px);
  height: auto;
  margin-right: 10px;
  border: 1.5px solid #f7dfa3;
  border-radius: 12px;
  background: #fff;
}
.input-captcha { margin-top: 10px; letter-spacing: .2em; text-transform: uppercase; }
.input-captcha::-webkit-input-placeholder { letter-spacing: normal; text-transform: none; }
.input-captcha::-moz-placeholder          { letter-spacing: normal; text-transform: none; }
.input-captcha:-ms-input-placeholder      { letter-spacing: normal; text-transform: none; }
.input-captcha::placeholder               { letter-spacing: normal; text-transform: none; }

.btn-icon {
  display: none;                    /* shown only when JS is available */
  width: 46px;
  height: 46px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  padding: 0;
  border-radius: 12px;
  border: 1.5px solid #f7dfa3;
  background: #fff;
  color: #a97a10;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}
.js .btn-icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.btn-icon:hover { background: #fdf1d6; }
.btn-icon.spin .icon { -webkit-animation: spin .5s ease; animation: spin .5s ease; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }

/* Buttons */
.btn {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  border: 0;
  border-radius: 12px;
  padding: 13px 24px;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  -webkit-transition: -webkit-filter .15s, -webkit-transform .1s;
  transition: filter .15s, transform .1s;
}
.btn .icon { width: 20px; height: 20px; margin: -3px 8px 0 0; }
.btn-primary {
  display: block;
  width: 100%;
  font-size: 1.05rem;
  color: #fff;
  background-color: #df8a1b;
  background-image: -webkit-linear-gradient(330deg, #c9971c 0%, #ef7f1a 100%);
  background-image: linear-gradient(120deg, #c9971c 0%, #ef7f1a 100%);
  -webkit-box-shadow: 0 10px 20px -10px rgba(212, 101, 16, .8);
  box-shadow: 0 10px 20px -10px rgba(212, 101, 16, .8);
}
.btn-primary:hover { -webkit-filter: brightness(1.05); filter: brightness(1.05); color: #fff; }
.btn-primary:active { -webkit-transform: translateY(1px); transform: translateY(1px); }
.btn-primary[disabled] { opacity: .7; cursor: wait; }
.btn-outline {
  color: #7f5b0b;
  background: #fff;
  border: 1.5px solid #d9ae3c;
}
.btn-outline:hover { background: #fdf1d6; color: #7f5b0b; }
.btn-auto { display: inline-block; width: auto; }
.js-only-flex { display: none !important; }
.js .js-only-flex { display: inline-block !important; }

/* ---------- Notes ---------- */
.notes {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 4px solid #ef7f1a;
  background: #fffaf0;
  border-radius: 0 12px 12px 0;
  font-size: .92rem;
  color: #6b5a42;
}
.notes strong { color: #d46510; }
.notes ol { margin: 4px 0 10px; padding-left: 22px; }
.notes ol:last-child { margin-bottom: 0; }

/* ---------- Alerts ---------- */
.alert {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 500;
  margin-bottom: 14px;
}
.alert .icon { margin: 2px 10px 0 0; }
.alert > div { min-width: 0; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; }
.alert-danger { background: #fdecea; color: #a8261b; border: 1px solid #f5c2bd; }
.alert-info { background: #fff4e0; color: #7a4a05; border: 1px solid #f7dfa3; }

.empty-state { text-align: center; color: #6b5a42; padding: 10px 0; }
.empty-state .icon { width: 48px; height: 48px; color: #d9ae3c; }
.empty-state h3 { margin: 8px 0 4px; color: #7f5b0b; }

/* ---------- Results ---------- */
.results-section { margin-top: 28px; }
.result-count {
  margin-left: auto;
  padding: 2px 12px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background-color: #df8a1b;
  background-image: linear-gradient(120deg, #c9971c 0%, #ef7f1a 100%);
  border-radius: 999px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #f0e2c4;
}
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: .88rem;
  font-weight: 700;
  color: #7f5b0b;
  background: #fdf1d6;
  padding: 12px 14px;
  border-bottom: 2px solid #f7dfa3;
}
.table td { padding: 12px 14px; border-bottom: 1px solid #f0e2c4; vertical-align: middle; }
.table tbody tr:nth-child(even) { background: #fffcf5; }
.table tbody tr:hover { background: #fdf1d6; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { width: 70px; text-align: center; color: #6b5a42; }
.table .code { white-space: nowrap; }
.table a { font-weight: 600; text-decoration: none; display: inline-block; padding: 4px 0; }
.table a:hover { text-decoration: underline; }

/* Phones: each table row becomes a card */
@media (max-width: 600px) {
  .table-wrap { border: 0; overflow: visible; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .table tr {
    position: relative;
    margin-bottom: 10px;
    padding: 10px 14px 10px 56px;
    border: 1px solid #f0e2c4;
    border-radius: 12px;
    background: #fff;
  }
  .table tbody tr:nth-child(even) { background: #fffcf5; }
  .table td { padding: 2px 0; border: 0; text-align: left; }
  .table td.num {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 0;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: #fdf1d6;
    color: #7f5b0b;
    font-weight: 700;
    font-size: .85rem;
  }
  .table td.code { font-size: .88rem; color: #6b5a42; }
  .table td.code:before { content: attr(data-label) ": "; }
  .table a { font-size: 1.02rem; padding: 2px 0; }
}

/* Pagination tabs 1 2 3 ... */
.pager {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 12px -3px;
}
.pager-num, .pager-step {
  display: inline-block;
  min-width: 42px;
  height: 42px;
  line-height: 40px;
  margin: 3px;
  padding: 0 10px;
  text-align: center;
  font-weight: 700;
  color: #7f5b0b;
  background: #fff;
  border: 1.5px solid #f7dfa3;
  border-radius: 10px;
  text-decoration: none;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}
a.pager-num:hover, a.pager-step:hover { background: #fdf1d6; border-color: #d9ae3c; color: #7f5b0b; }
.pager-num.is-current {
  color: #fff;
  border-color: #df8a1b;
  background-color: #df8a1b;
  background-image: -webkit-linear-gradient(330deg, #c9971c 0%, #ef7f1a 100%);
  background-image: linear-gradient(120deg, #c9971c 0%, #ef7f1a 100%);
  -webkit-box-shadow: 0 4px 10px -4px rgba(212, 101, 16, .6);
  box-shadow: 0 4px 10px -4px rgba(212, 101, 16, .6);
}
.pager-step { font-size: 1.3rem; }
.pager-step.is-disabled { opacity: .4; }
.pager-info { margin: 0 0 4px; text-align: center; font-size: .88rem; color: #6b5a42; }
@media (max-width: 400px) {
  .pager-num, .pager-step { min-width: 36px; height: 38px; line-height: 36px; padding: 0 6px; margin: 2px; }
}

/* Detail header */
.detail-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #fff;
  background-color: #df8a1b;
  background-image: -webkit-linear-gradient(330deg, #c9971c 0%, #ef7f1a 100%);
  background-image: linear-gradient(120deg, #c9971c 0%, #ef7f1a 100%);
}
.detail-head .avatar {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  margin-right: 16px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: rgba(255, 255, 255, .22);
  border: 2px solid rgba(255, 255, 255, .6);
}
.detail-head .avatar .icon { width: 28px; height: 28px; }
.detail-head .who { min-width: 0; -webkit-box-flex: 1; -ms-flex: 1 1 200px; flex: 1 1 200px; }
.detail-head .name { font-size: 1.25rem; font-weight: 700; line-height: 1.35; word-wrap: break-word; }
.detail-head .id { opacity: .95; }
.badge-verified {
  margin: 6px 0 6px auto;
  display: inline-block;
  background: #fff;
  color: #7f5b0b;
  font-size: .82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-verified .icon { width: 16px; height: 16px; margin: -3px 6px 0 0; color: #ef7f1a; }

/* Detail fields (two columns on wider screens) */
.detail-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -6px;
  padding: 0;
}
.detail-list > div {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: -webkit-calc(100% - 12px);
  width: calc(100% - 12px);
  margin: 6px;
  padding: 12px 16px;
  border: 1px solid #f0e2c4;
  border-radius: 12px;
  background: #fffdf8;
}
@media (min-width: 640px) {
  .detail-list > div { width: -webkit-calc(50% - 12px); width: calc(50% - 12px); }
  .detail-list > div.wide { width: -webkit-calc(100% - 12px); width: calc(100% - 12px); }
}
.detail-list dt { font-size: .82rem; color: #6b5a42; }
.detail-list dd { margin: 2px 0 0; font-weight: 600; font-size: 1.02rem; word-wrap: break-word; }

.actions { margin: 14px -5px 0; text-align: center; }
.actions .btn { margin: 5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #3a2a0c;
  color: #f3e2bb;
  font-size: .9rem;
  border-top: 4px solid #c9971c;
}
.site-footer .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
@supports (padding: max(0px)) {
  .site-footer .container { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
.site-footer .container > * { margin: 4px 0; }
.site-footer .container > span { margin-right: 24px; }
.site-footer a { color: #f7dfa3; }
.site-footer a:hover { color: #fff; }

/* ---------- Tablets & phones ---------- */
@media (max-width: 899px) {
  .info-card .seal { width: 80px; }
}
@media (max-width: 560px) {
  .card-body { padding: 18px 14px; }
  .card-header { padding: 14px 16px; }
  .hero { padding-top: 24px; }
  .brand-sub { display: none; }
  .brand-logo { width: 48px; height: 48px; margin-right: 12px; }
  .brand-logo img { height: 38px; }
  .segmented label { font-size: .86rem; padding: 6px 2px; }
  .segmented label small { font-size: .72rem; }
  .detail-head { padding: 16px; }
  .badge-verified { margin-left: 0; }
  .actions .btn { display: block; width: -webkit-calc(100% - 10px); width: calc(100% - 10px); }
}
@media (max-width: 340px) {               /* very small phones (iPhone SE 1st gen, Galaxy Fold) */
  body { font-size: 15px; }
  .segmented label small { display: none; }
}

/* ---------- Print (verification printout) ---------- */
@media print {
  body { background: #fff; display: block; }
  .site-header, .site-footer, .actions, .search-card, .info-card, .hero, .skip-link { display: none !important; }
  .card { -webkit-box-shadow: none; box-shadow: none; border-color: #ccc; }
  .detail-head { background: none !important; color: #000; border: 1px solid #ccc; }
  .detail-head .avatar { border-color: #ccc; }
  .badge-verified { border: 1px solid #ccc; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { -webkit-transition: none !important; transition: none !important; -webkit-animation: none !important; animation: none !important; }
}
