<?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_42bf841c-351b-46c4-b2ac-db363a32a04f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-19</startDate>
            <endDate>2026-08-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_42bf841c-351b-46c4-b2ac-db363a32a04f"
      id="F_faec92e9-fe62-4c76-b1d7-8673a58cded8">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_42bf841c-351b-46c4-b2ac-db363a32a04f"
      id="F_c3930598-f64d-4ed4-aa74-d9f7b17c544e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_42bf841c-351b-46c4-b2ac-db363a32a04f"
      id="F_2a3cc7f7-c5bd-4ae9-b80c-7f0faea76e84">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_42bf841c-351b-46c4-b2ac-db363a32a04f"
      id="F_6b29637c-c02a-4bc8-9f35-065e9c83a89c">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_42bf841c-351b-46c4-b2ac-db363a32a04f"
      id="F_b5b6142e-eb8f-4fc2-9a99-3dbbcf6c2820">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_42bf841c-351b-46c4-b2ac-db363a32a04f"
      id="F_809e2878-8518-4923-be15-a8dc3ba8b4ad">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_42bf841c-351b-46c4-b2ac-db363a32a04f"
      id="F_56bed6e8-c10a-4096-8791-98c20f112da9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_42bf841c-351b-46c4-b2ac-db363a32a04f"
      id="F_4dc96e67-68c0-4bb8-96e2-4c2cbcc5e583">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_42bf841c-351b-46c4-b2ac-db363a32a04f"
      id="F_1bdd447b-95e7-451f-95bb-ada5870184fc">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_42bf841c-351b-46c4-b2ac-db363a32a04f"
      id="F_62cc1203-2a48-4d65-97ea-0b37de7e5e1e">&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;3,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_42bf841c-351b-46c4-b2ac-db363a32a04f"
      decimals="-3"
      id="F_7c750322-a18d-45d2-a063-345bb2bfe8f5"
      unitRef="U_USD">3655000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
