<?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_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      id="F_508bd28d-e272-423a-98fb-4e0ef5279fd3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      id="F_1da2eaf9-61ba-4cf2-9a9a-af8e5a0f89f3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      id="F_d735ab38-194d-498f-aebb-3ad498458a19">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      id="F_08f86345-c1ba-4d10-a15a-fd56a855692c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      id="F_303b6712-8c20-4f7a-86a3-965a3e3bd3b5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      id="F_69207c22-0c42-46bd-9d26-502bdc777348">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      id="F_477c5217-50e1-4ad9-b640-5415f6122a77">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      id="F_6270a79f-ba8b-4212-8203-23c635287746">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      id="F_10375a90-08d5-48c0-b9cb-8aec3c0ac2a9">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      id="F_1e3f557e-aca7-4682-a11d-1424db9a59c1">&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,020,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_ec03395a-8b9f-477b-8500-3b0a7e8b2fe7"
      decimals="-3"
      id="F_19ef8d1b-6fcf-427c-b9ca-fabcf84bea53"
      unitRef="U_USD">1020000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
