<?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_b71046bb-b0e1-4a23-b24a-cf7b20b84c73">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      id="F_04a27235-73f5-41f1-a3b6-4f4e300a7712">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      id="F_db480bde-d164-4e2e-8ba4-e109330078d9">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      id="F_e5edab81-7645-4b7c-a9c4-ebcb45bbe393">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      id="F_64331325-6b8e-4e3e-a7f2-29975a323e8e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      id="F_7281d5e9-e953-4123-a65d-bfdf5c535469">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      id="F_ed995885-b84d-4a1c-a49e-adfd4ea6b746">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      id="F_32539396-bf7d-4713-a502-8d5af71848ec">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      id="F_70783c2c-0d79-47eb-994d-5d0b815ea460">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      id="F_f113b7cb-e27c-42c3-bf59-d98ce20327f9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      id="F_a7ba4d80-53ff-4d79-a08a-2277524117b6">&lt;p style="tab-size:26.66px;font-size:12pt;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,992,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_b71046bb-b0e1-4a23-b24a-cf7b20b84c73"
      decimals="-3"
      id="F_e50b0060-590b-434d-8c98-257bbba3cc82"
      unitRef="U_USD">1992000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
