<?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_3e44e109-3715-4a0e-83e2-e217944dfd98">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_3e44e109-3715-4a0e-83e2-e217944dfd98"
      id="F_fb2c1853-f311-46c3-81d7-6829f64d9d00">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_3e44e109-3715-4a0e-83e2-e217944dfd98"
      id="F_dad128ba-38f2-4c12-8550-8888ebd6ec96">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3e44e109-3715-4a0e-83e2-e217944dfd98"
      id="F_4c7a656e-245f-4db5-bb91-fc1630279a52">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_3e44e109-3715-4a0e-83e2-e217944dfd98"
      id="F_32e6e189-2e1b-4136-8302-b904930849e3">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_3e44e109-3715-4a0e-83e2-e217944dfd98"
      id="F_7f422dac-1557-4885-944e-37f628869b1a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_3e44e109-3715-4a0e-83e2-e217944dfd98"
      id="F_0999aef9-3c34-4582-8776-0e3413215464">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3e44e109-3715-4a0e-83e2-e217944dfd98"
      id="F_68624177-3466-4a07-ac61-0161a124e644">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3e44e109-3715-4a0e-83e2-e217944dfd98"
      id="F_38e35ab7-3688-49a7-9a77-30a9b4700c51">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3e44e109-3715-4a0e-83e2-e217944dfd98"
      id="F_7363267e-d792-4f55-8e2a-34afebe5057e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3e44e109-3715-4a0e-83e2-e217944dfd98"
      id="F_4a60bd78-a15e-4a82-a378-7437b61af71b">&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;565,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_3e44e109-3715-4a0e-83e2-e217944dfd98"
      decimals="-3"
      id="F_59d07dd3-d591-48da-8d3e-de8888fa6ac2"
      unitRef="U_USD">565000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
