<?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_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      id="F_944c88cd-63ae-43cb-8c7d-f3859bf09d42">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      id="F_f8615dd6-599e-4225-bec1-464dec46907a">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      id="F_56be1eb6-32fe-4abc-808b-2b2c5ab5f12a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      id="F_8c7654bb-4f6e-4f36-ad15-44d7752b7553">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      id="F_65606406-f084-46bf-a9be-0cd8691f5cdc">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      id="F_60c76428-4e92-4797-ab97-6bcbb81141b5">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      id="F_ec99158b-07db-489c-b26d-0e5e88217a01">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      id="F_9e778f68-f16c-4c9b-88ce-b08f000a9b26">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      id="F_e7ca832f-f537-4c96-902e-ac0262bcf01e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      id="F_a9035e5d-c045-413d-83e0-2d8d96374fde">&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,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_f137b2b1-bdca-40c1-bfa6-7c98eaf115dd"
      decimals="-3"
      id="F_4bf37974-c2ab-426e-b8c7-51d62b88a3f5"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
