<?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_fcb809ca-f97c-4bee-8a78-d8de95e6cd93">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      id="F_5ba3338c-da2c-4553-89bd-657d84af6bec">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      id="F_0744c514-b335-46a7-90df-d0e7be94ec31">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      id="F_109e7578-e044-4a7a-8a9e-66eaf91ded46">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      id="F_e067c693-0234-4212-aee9-58f8b5ae03ae">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      id="F_5cf52f4d-958e-4086-b28a-3ade1fc6b887">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      id="F_916838a7-1967-4bc7-91e7-06a194a52a81">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      id="F_002bc809-4e75-4397-945a-eedb7bc16df7">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      id="F_7c1b3ef2-6879-4cb9-8fde-c14210a47f45">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      id="F_004ad3cb-f906-4ad4-bdce-e5bf4daa97c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      id="F_03376b3a-1261-4b65-ae44-7f033f4c6c22">&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,165,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_fcb809ca-f97c-4bee-8a78-d8de95e6cd93"
      decimals="-3"
      id="F_3c290149-e541-44e2-9198-feff667af03f"
      unitRef="U_USD">1165000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
