<?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_a7a45341-88f1-424a-ab59-fc861b9c36f3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      id="F_98468bbb-5239-4349-acc3-1d97c1510247">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      id="F_c7f64fef-cdad-4cc1-b9fe-d9bb8a3215d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      id="F_5481d542-cc6c-438f-b59e-9dbc4afcf4e7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      id="F_a98c028c-9440-4751-8ead-f691d45667b2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      id="F_47feadd4-ab72-4d49-af78-2d129182d2fe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      id="F_41b817f0-052a-4ab1-96f5-b120c1c87ca1">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      id="F_16e92470-6f50-492a-97dc-09694b0bfbb3">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      id="F_bf1cbe10-1f90-45ee-a75a-b2aa17f4f5b6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      id="F_7f76c1c9-2057-435a-be93-45c2d35dd784">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      id="F_2fdf9301-c21c-4acc-8c48-216cfe2050e8">&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;822,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_a7a45341-88f1-424a-ab59-fc861b9c36f3"
      decimals="-3"
      id="F_00f0e7ec-c3c6-458b-9e5b-e05d166a4168"
      unitRef="U_USD">822000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
