<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_a1208f24-aac2-4748-85bf-19388994b3ef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-02</startDate>
            <endDate>2026-01-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_a1208f24-aac2-4748-85bf-19388994b3ef"
      id="F_fb12a59c-af56-4cc5-8f4d-b235920e84f7">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a1208f24-aac2-4748-85bf-19388994b3ef"
      id="F_0e40cf89-12cb-463e-aa82-231be0d3c9d1">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a1208f24-aac2-4748-85bf-19388994b3ef"
      id="F_8c92292c-44ee-4d5a-8c58-4eb65cfd4ef3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a1208f24-aac2-4748-85bf-19388994b3ef"
      id="F_f0fa37e7-f7df-4d24-aa6f-7f9eb6cca761">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a1208f24-aac2-4748-85bf-19388994b3ef"
      id="F_26ec621c-5b15-486a-8276-e8d769802d4f">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_a1208f24-aac2-4748-85bf-19388994b3ef"
      id="F_8707b377-8efe-4a7e-a87a-ea4c64e4d6d7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1208f24-aac2-4748-85bf-19388994b3ef"
      id="F_5621e38f-6f1d-420c-a629-0dd8278427b0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a1208f24-aac2-4748-85bf-19388994b3ef"
      id="F_bf765b5f-7797-4cbd-b9ce-bb89fdbe02c8">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a1208f24-aac2-4748-85bf-19388994b3ef"
      id="F_d0473db1-e4d1-45b0-8aac-e06f96c1d8cc">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a1208f24-aac2-4748-85bf-19388994b3ef"
      id="F_ea13461f-8f84-44ea-a433-771ed10c8f68">&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;500,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_a1208f24-aac2-4748-85bf-19388994b3ef"
      decimals="0"
      id="F_9f955dac-e4b3-4b26-89f4-8b26e534d99b"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
