<?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_a0a8b9be-f5a5-4223-8e84-f22cd7834a58">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      id="F_d1f01f5a-3243-47a9-960a-be84a6aa1992">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      id="F_6f3c88b0-305a-4c9e-9b0a-7f6768ae15e3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      id="F_5c4ea7dd-a88b-4e0f-84d8-20f0e9fc7638">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      id="F_f46fa09f-c3f9-4fcf-8f73-670ea394bf53">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      id="F_7a3eea76-3967-44df-9bed-8fa14380eefc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      id="F_474aad40-e2a7-47c9-b6a4-af304e168b64">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      id="F_613bd686-1f4b-4e00-ac16-2203b8d478b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      id="F_503f86d2-0e42-4a3b-9641-8e88a00545fe">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      id="F_a3c79abf-e5d7-496a-a70e-92ac5b040975">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      id="F_3b33bec6-944f-4a92-905c-0cfb624a8fc8">&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,025,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_a0a8b9be-f5a5-4223-8e84-f22cd7834a58"
      decimals="-3"
      id="F_cbe82baf-803a-4f3d-8248-2bb74b1b622e"
      unitRef="U_USD">1025000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
