<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_b1aed60f-e945-4433-8712-f53e065468d2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b1aed60f-e945-4433-8712-f53e065468d2"
      id="F_5b156077-7170-47f4-8f5c-d8f4a5682187">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b1aed60f-e945-4433-8712-f53e065468d2"
      id="F_06bdd247-7683-4d00-9f68-5c9d3ea52f8b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b1aed60f-e945-4433-8712-f53e065468d2"
      id="F_cb95f544-b704-48bc-9d9f-6f96eb852bfd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b1aed60f-e945-4433-8712-f53e065468d2"
      id="F_6e8e35a1-e84c-4781-bfa1-67303997f0ab">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b1aed60f-e945-4433-8712-f53e065468d2"
      id="F_d9504479-127a-4476-9335-05fb6dcedbea">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b1aed60f-e945-4433-8712-f53e065468d2"
      id="F_7f3f359b-17b6-497a-bc45-4782bfd99d8c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b1aed60f-e945-4433-8712-f53e065468d2"
      id="F_ee9e51d9-b216-4ef8-8506-04bdfdb5a3af">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b1aed60f-e945-4433-8712-f53e065468d2"
      id="F_a18bcf0d-e50d-450e-be6b-6e0159d01cde">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b1aed60f-e945-4433-8712-f53e065468d2"
      id="F_c084bf4b-747d-4de2-bf86-6aec5a67b0af">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b1aed60f-e945-4433-8712-f53e065468d2"
      id="F_3de8dcbc-846b-4d4c-8eb5-5b535c6b4b05">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&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;6,150,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_b1aed60f-e945-4433-8712-f53e065468d2"
      decimals="0"
      id="F_92a7e48a-9aa9-477e-b6be-b48382ef3a52"
      unitRef="U_USD">6150000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
