<?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_a5ab2959-2d2b-416e-804e-11265ce3e9ba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      id="F_b345fe73-e4a2-4ea0-a31e-d12c3201d4c6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      id="F_ecaea127-08be-4695-a5c2-876a485363d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      id="F_5af50a72-ae74-41a9-ae9b-ec2eb25ff0bc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      id="F_89edb3e2-6df4-4bee-a457-0bdbf75bb4fc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      id="F_7343d089-481a-432e-a783-40ab0b2f40b6">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      id="F_ee19a90a-2fcb-41b3-ae41-13662951448b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      id="F_ac82e5f8-f054-46e2-ba16-a6251e531450">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      id="F_2133970c-972c-44ed-b1a8-23c8488672cf">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      id="F_20519690-79b0-495c-9a15-e8218e70efd7">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      id="F_02dabd3d-30b1-447e-bdef-e9f3a9daad25">&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_a5ab2959-2d2b-416e-804e-11265ce3e9ba"
      decimals="-3"
      id="F_4d1f8fb0-86c8-469d-9f62-c538fc085a8c"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
