<?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_620c990f-1e4e-4053-b6ec-c3083785e817">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-12</startDate>
            <endDate>2026-03-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_620c990f-1e4e-4053-b6ec-c3083785e817"
      id="F_efcae44a-e152-49c1-84d4-ca8e17d87201">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_620c990f-1e4e-4053-b6ec-c3083785e817"
      id="F_318f1b42-8284-4658-8714-423b56ce72d3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_620c990f-1e4e-4053-b6ec-c3083785e817"
      id="F_c8a1b881-051a-488d-b212-d54f469ab994">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_620c990f-1e4e-4053-b6ec-c3083785e817"
      id="F_40480c84-b052-498b-ae79-4e43f755575f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_620c990f-1e4e-4053-b6ec-c3083785e817"
      id="F_8ba07b6f-81d4-492e-b6ca-f5c45eafb2de">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_620c990f-1e4e-4053-b6ec-c3083785e817"
      id="F_4fcbc57b-5382-47a9-8c4a-effec601fa94">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_620c990f-1e4e-4053-b6ec-c3083785e817"
      id="F_7082f481-41be-41a8-8799-84e111f34856">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_620c990f-1e4e-4053-b6ec-c3083785e817"
      id="F_8b57e98a-311e-44b5-bc3b-d9a689dacf23">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_620c990f-1e4e-4053-b6ec-c3083785e817"
      id="F_8a070d8e-264f-4594-884f-d5e8d485a170">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_620c990f-1e4e-4053-b6ec-c3083785e817"
      id="F_93ecc98d-f5b8-405d-91aa-68b13885fccd">&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;1,632,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_620c990f-1e4e-4053-b6ec-c3083785e817"
      decimals="0"
      id="F_4571724a-7882-476e-855b-63be0bf5d16f"
      unitRef="U_USD">1632000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
