<?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_44c6ca36-55d0-4edb-9970-370c5311bdbb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      id="F_2d484616-dc8d-484f-a681-355d9ec64d20">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      id="F_1d52e383-0137-4882-8819-22e6848a0c59">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      id="F_2bdb234c-0224-4bb5-9763-865cc21a9981">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      id="F_bd637e5d-f991-4fb8-952f-57461a4dbbf1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      id="F_06dabf74-550f-4e1b-babe-4e42f24ee48f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      id="F_b4ce010e-e794-467f-b8f3-d2bfdb45ca22">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      id="F_31c39830-d191-4b42-aaf5-35007ecb33be">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      id="F_518efebe-dad2-4ae2-83f7-f5c8a52d6df4">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      id="F_dd31510e-d3bb-4f5a-8095-c7a4bbc1078c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      id="F_38fa4fb8-fabf-43b7-b322-1613fd133b5b">&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,136,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_44c6ca36-55d0-4edb-9970-370c5311bdbb"
      decimals="0"
      id="F_072b9dd3-5830-4f1c-a950-0da7afd9c25f"
      unitRef="U_USD">1136000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
