<?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_85a63139-626b-48a7-9bf1-11c4d17e0dd6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-11</startDate>
            <endDate>2026-06-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      id="F_4551cff9-0c37-4a46-8fe6-5633373539a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      id="F_d762d6cb-186f-4003-a634-78f8b301a924">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      id="F_4387957b-1870-4069-99fa-39a248a88408">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      id="F_6b0b6c11-6250-44de-b344-a3db50d4b560">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      id="F_46b90412-4c4f-43e5-bdd5-bedeb84758a1">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      id="F_963a7d39-7be9-4327-ae87-b5d52da8edd2">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      id="F_db45a2f2-cf07-4c8b-bf53-b9ca5c37c79f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      id="F_4cc40e55-ac36-44cb-a353-24b8366eabc0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      id="F_80607900-c131-45d5-8ae3-eeb491b1f259">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      id="F_82e64641-39a5-4513-8d7b-7005e15fbbdc">&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;5,513,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_85a63139-626b-48a7-9bf1-11c4d17e0dd6"
      decimals="-3"
      id="F_9e9ce50b-cf3d-4dc2-ad97-4de500647cfa"
      unitRef="U_USD">5513000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
