<?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_01dbb9d9-e9bb-4a13-996b-7aed475bb522">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      id="F_3be9b820-d053-47fc-8994-82a6de670d82">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      id="F_e37d06a8-dbcf-4a17-910b-b203fd86bac2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      id="F_63b449f0-b9b5-4455-ae6f-ac06ae4761eb">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      id="F_d715c131-baaf-4e23-90d5-bc0ef60a1b18">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      id="F_896c34c3-a1b9-43f5-a93d-82ff741fdca5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      id="F_cf633fff-342e-4556-ba90-1d7e33f319d5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      id="F_f3d405c2-194a-429c-b2a5-906953bb663c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      id="F_4de1caa4-66e3-418c-a4ca-afc2de39d4a6">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      id="F_eb6c7a1d-049c-4a41-83cc-2d5cd0307ec0">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      id="F_f13bc97b-2219-42f7-b001-6f468db249b0">&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;500,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_01dbb9d9-e9bb-4a13-996b-7aed475bb522"
      decimals="-3"
      id="F_261ae64f-ffe0-4bf5-9011-e5ff5d54ae18"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
