<?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_e6d76287-de47-4a92-baaa-1d4a01feb1db">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      id="F_184fd354-deda-4475-8c24-b181081727fd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      id="F_41273297-cc6a-4083-88c6-98b05c4df2dd">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      id="F_69bb9e1d-a7cb-4d01-9933-b9558cc8046c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      id="F_8536ef98-5b1e-45e7-9e17-c9fcb1e51837">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      id="F_d88f7011-1e7b-42fa-b4b7-c9c0ee9e968c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      id="F_daccaf1f-6c6a-484b-acb5-a0fbb9cb47d0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      id="F_78d097d4-9604-46b8-8c86-586f9f32642d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      id="F_2fa6d842-1cb6-4a29-9c86-40e185f4ab16">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      id="F_f32d522f-eb9f-4c6e-9e2f-4fc281760f71">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      id="F_23d21ed0-9924-41bb-9ae3-ebce1d3df828">&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;2,993,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_e6d76287-de47-4a92-baaa-1d4a01feb1db"
      decimals="-3"
      id="F_3ec34ee4-4ca7-45ef-a794-0fe5eff897aa"
      unitRef="U_USD">2993000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
