<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_f671a6a4-9614-4e8d-91b9-45028122af80">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      id="F_cc705e6a-c580-451c-baa8-eb5b5e516a5f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      id="F_3b497426-3265-442c-ad2a-d03b35f204bf">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      id="F_61891241-8b44-42bc-9483-60bf1ace7a06">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      id="F_8b888b10-65e8-4f42-aaf8-984a35bed96b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      id="F_e177b1ef-660c-44e0-862c-e6024ebe3b43">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      id="F_9fa27e04-a230-459d-be23-3f800aa2902e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      id="F_24514971-a44c-4f72-b168-256056089c53">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      id="F_ebd6ae62-7f93-4643-a9c3-51e899449441">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      id="F_039c0bd8-4578-472a-899c-31dadcdcffd1">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      id="F_ced39a09-f5bd-4491-803e-1a08c2b0d436">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1,227,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_f671a6a4-9614-4e8d-91b9-45028122af80"
      decimals="-3"
      id="F_7d73b5fc-8f62-4b86-bae6-2a83265490f6"
      unitRef="U_USD">1227000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
