<?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_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      id="F_dd3ab4dd-74a6-43fc-b803-e889bc6e8769">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      id="F_60e0608d-fdf2-49ed-bdee-2095b4164433">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      id="F_49e47a20-6836-4d92-b22d-74ad8ae77c65">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      id="F_535e1866-62f9-4385-830e-110c87729dd7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      id="F_55cbff52-d207-4950-bc2e-3b67fa60e579">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      id="F_f4645285-a4d6-41ad-a96c-b6c7abe35cab">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      id="F_b273009a-8eb9-4066-935f-6e84a360a5b7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      id="F_3b21a0ca-4d13-4749-8f05-ee72ddfd3ed6">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      id="F_af0c8c38-3ec3-44c0-b005-d68522087ed7">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      id="F_dcd20e1e-235e-422d-8f36-61d5b01839fb">&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;655,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_a026b5a0-670a-4fa6-bfcd-5a976c0ed9fa"
      decimals="0"
      id="F_156657fd-f25a-4f35-8d53-bd0e23252b23"
      unitRef="U_USD">655000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
